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

'ChartViewDelegate' is unavailable: cannot find Swift declaration for this class. #1613

Closed
JW00332 opened this issue Oct 5, 2016 · 4 comments

Comments

@JW00332
Copy link

JW00332 commented Oct 5, 2016

I've just updated to Swift 3 and implemented the master branch of Charts, the rest of my code is now working in Swift 3, but I am getting the error in the title, as well as errors such as "PieChartView" is unavailable. I am using the most recent version, does anyone have any idea what I have missed, I have checked the "migrating to swift3" and I can't find anything that would fix my problem?

Thanks in advance, for taking the time to help me out!

EDIT: I have dragged the charts xcodeproject as in all previous implementations and embedded the binary etc. It is strange as auto complete recognises things such as "PieChartView" etc.

@pmairoldi
Copy link
Collaborator

I don't what to say since I just tried it in the demo and it works. Just embed charts like the demo and it will work.

@JW00332
Copy link
Author

JW00332 commented Oct 6, 2016

I've just tried it in a "fresh" Xcode project, and it works fine. Its only an issue when trying to migrate an older Xcode project to Xcode 8. The project builds on "generic devices" but not on simulator/device. Again, the "fresh" implementation works fine. What can I do to make my older project play nice with the new version? Are there cached files i should delete? I have already cleared derived data/ clean etc.

Thanks,

James

@pmairoldi
Copy link
Collaborator

Good to know!

@jrames
Copy link

jrames commented Feb 6, 2017

@JW00332 were you able to troubleshoot this, beyond creating a new project? I really need to get this working in an existing project, and am having the same issue you were.

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

3 participants