Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo Project: In BalloonMarker.swift : "Error: No such module 'charts' " XCode 6.4 #237

Closed
DarvishKamalia opened this issue Jul 23, 2015 · 8 comments

Comments

@DarvishKamalia
Copy link

Just downloaded the library and tried compiling the demo project, ran into this error. I tried including the library in my project as per the instructions in the README, but I get the same problem.

@liuxuan30
Copy link
Member

Can you provide more information? The demo project should be working anyway. There could be many reasons for Error: No such module 'charts'... you can search through the closed issues for possible reasons.

@DarvishKamalia
Copy link
Author

Yeah that's what I thought. Since the demo project doesn't work, it's most likely a problem with my setup. However, I cannot think of anything I changed. I tried clean, and deleting the DerivedData folder. I will look at the closed issues.

@DarvishKamalia
Copy link
Author

Alright so I fixed it. I tried a bunch of things together, and I'm not sure what did it. First, I moved the "Charts" folder into the "ChartsDemo" folder. Then I added ($SRCROOT) to the runpath search paths in the "linking" section in the build settings. Finally, I removed and re-added Charts in the "Target Dependencies" section in the build phases.

@DarvishKamalia
Copy link
Author

I can confirm that adding ($SRCROOT) to the runpath search paths fixed it.

@liuxuan30
Copy link
Member

I never played with ($SRCROOT) on my side, all defaults. Looks like you customized a lot of things...

@DarvishKamalia
Copy link
Author

Haha yeah it looks like a one-off thing.
On Fri, Jul 24, 2015 at 3:45 PM Xuan [email protected] wrote:

I never played with ($SRCROOT) on my side, all defaults. Looks like you
customized a lot of things...


Reply to this email directly or view it on GitHub
#237 (comment)
.

@tirendus
Copy link

tirendus commented Sep 4, 2015

Adding ($SRCROOT) to runpath search paths definitely fixes this problem, thank you very much for creating this issue.

@JackLeeMing
Copy link

you should copy the library to your project's dir and the pull the Charts.xcodeproj to your project . use "Embedded Binaries" to include the framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants