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

Created on 5 Oct 2016  ·  4Comments  ·  Source: danielgindi/Charts

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.

Most helpful comment

@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.

All 4 comments

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.

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

Good to know!

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Shunshine07 picture Shunshine07  ·  3Comments

guanyanlin picture guanyanlin  ·  3Comments

anhltse03448 picture anhltse03448  ·  3Comments

ahmedsafadii picture ahmedsafadii  ·  3Comments

heumn picture heumn  ·  3Comments