-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Unknown class LineChartView in Interface Builder file #59
Comments
I cannot reproduce this... |
The debugger stops at the line where I set the chartView (connected to storyboard) delegate to self. |
Well I assume anyone coming here having a basic knowledge of Swift, ObjC and IB... There's no real reason to have a demo in Swift when there is one in ObjC, as the API is the same. Calling a function with square brackets or with a dotted syntax is the same and a programmer should not have a problem with that... Now when it tells you that it's an unknown class - it is probably because it is. |
I already wrote the code in swift to use the lib, so we don't need a demo for "How I use it in swift", but we need a demo "How I embed it right". I followed your steps to embed Charts, and I also can compile the code and run the app, but when I switch to the ChartsViewController, I get the error. I also tried with "Charts." to make sure the namespace is right, but the Storyboard cleans "Charts.LineChartVC" to "LineChartVC" and later then it didn't find the class with the error "Unknown class LineChartView in Interface Builder file." |
@MartinPajak Thanks for commenting the solution to your problem! Changing module to Charts did it for me! |
@MartinPajak And me, too. Thanks, Martin. |
@MartinPajak 's solution worked for me. Thanks a lot! |
@MartinPajak Thank you!!! You saved me a lot of debugging time. |
@MichaelArnoldOwens me too! So long before to find this post and the solution! Thank you!!!! |
@MartinPajak THANK YOU! I didn't realize you had to set the Module field as well. Had this issue with a totally unrelated library. |
@MartinPajak Thanks a lot !! Been researching for all sorts of solutions. Only this one works! |
@MartinPajak Thank you, Martin. I also had this exact same issue with a separate library. |
@MartinPajak Changing the Module Works like magic!!! Thanks so much Martin. |
Thanks, this fixed the problem. This solution should be added to the semi-official stack overflow answer for how to setup the charts project: http://stackoverflow.com/a/30648104/2789065 I'd do it but my lurker status on stack overflow doesn't let me comment yet |
@MartinPajak Thanks fixed problem!!! |
…f class; there was needed to set "Chart" Module manually For more info check: ChartsOrg/Charts#59
I alwas get this runtime error when switching to the viewcontroller where the LineChartView is placed.
As proposed in this case of error I added "-all_load -ObjC" to the "Other Linker Flags" in project and targets settings, but this error still comes up. Any hint?
The text was updated successfully, but these errors were encountered: