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

Chart Swift files not running on Obj-C XCODE8.0 install #1908

Closed
craigflanagan opened this issue Dec 2, 2016 · 3 comments
Closed

Chart Swift files not running on Obj-C XCODE8.0 install #1908

craigflanagan opened this issue Dec 2, 2016 · 3 comments

Comments

@craigflanagan
Copy link

Hi, I hope you can help me. I have used your charts before and love them. I have been trying
now for two days (yes its embarrassing) to get Charts to install on XCODE 8.0. I can get the demo running and have installed the Charts by dragging Charts.xcodeproj into my project. I have hit the plus to install the frameworks under embedded binaries on my target. I then compiled it and my project...no problems.
screen shot 2016-12-02 at 2 39 01 am

I set EMBEDDED_CONTENT_CONTAINs_SWIFT to Yes:

screen shot 2016-12-02 at 2 38 44 am

I then get stuck. Either the bridging header is unrecognized, or as Daniel suggested I remove the charts and open a swift file and reinstall the charts so sometimes I can get the header to be recognized but then the Charts elements are not recognized as follows:

screen shot 2016-12-02 at 2 36 57 am

Any help would be really greatly appreciated as I just can't figure out where I went wrong! Thank you. Craig

@liuxuan30
Copy link
Member

liuxuan30 commented Dec 5, 2016

I guess you have to take a look at ChartsDemo since you must search this issue already and know what Daniel suggested... You have to run carthage to download Realm to make ChartsDemo running. If you just need to take a look at project setting, then you don't need Realm.

@craigflanagan
Copy link
Author

Thank you. I don't quite understand your response. Is it possible to install as I have tried without using carthage? I don't need Realm but I do want to Charts library to be recognized in my code. Craig

@liuxuan30
Copy link
Member

liuxuan30 commented Dec 6, 2016

If you need to run ChartsDemo, then you need Realm. carthage is just a way to let you run a single cmd and get it installed. If you don't want carthage, then you have to install Realm yourself and compile ChartsDemo.

Your issue is having a pattern we have seen a lot in closed issues, but we don't know what's wrong with yours. It's just not enough clues.. All we can suggest is like rebuild, clean, start over, etc..

That's why I suggest you to run ChartsDemo at least it's a runnable objc based project and you can refer to it..

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

2 participants