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

Unexpected problem with Import Charts #973

Closed
FrancisZamora opened this issue Apr 23, 2016 · 5 comments
Closed

Unexpected problem with Import Charts #973

FrancisZamora opened this issue Apr 23, 2016 · 5 comments

Comments

@FrancisZamora
Copy link

I have been running iOS simulator to test my app, but when I switched over to my phone I started receiving the error No Such Module Charts.. It was working before when I used the iOS simulator but it stops working when I want to test it on my own phone.. I don't get it.

@jdmarshall90
Copy link

jdmarshall90 commented Apr 23, 2016

If you build the Charts framework scheme by itself for your device (not the simulator) first and then build the scheme for your app target (which will need to link to Charts), this should fix it.

I believe this applies for any framework target, not just Charts.

@FrancisZamora
Copy link
Author

The thing is I imported the classes folder from charts so I do not have the option to build the charts framework scheme by itself.

@FrancisZamora
Copy link
Author

I have the option to build Charts iOS which is a separate file from my project and is not in my project.

@jdmarshall90
Copy link

Oh I see. Is there a reason you can't just add Charts, as a whole, as a separate project in your Xcode workspace? That would allow you to do this.

Sent from my iPhone

On Apr 23, 2016, at 3:57 PM, FrancisZamora [email protected] wrote:

The thing is I imported the classes folder from charts so I do not have the option to build the charts framework scheme by itself.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

@pmairoldi
Copy link
Collaborator

If you have copied all the files to your project you shouldn't use import Charts since your aren't importing anything. The code is already in your app. It probably still works on the simulator since there is a chached version of the framework somewhere.

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