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

demo crashes, and no swift examples? #7

Closed
MarkLyck opened this issue Mar 29, 2015 · 11 comments
Closed

demo crashes, and no swift examples? #7

MarkLyck opened this issue Mar 29, 2015 · 11 comments

Comments

@MarkLyck
Copy link

When running your ChartsDemo app. I'm presented with the following errors:

dyld: Library not loaded: @rpath/Charts.framework/Charts
Referenced from: /private/var/mobile/Containers/Bundle/Application/9F8BD568-2130-48D8-9F62-E123EB2451BA/ChartsDemo.app/ChartsDemo
Reason: image not found
(lldb)

It's also written in Obj-c and not swift. Making it very difficult to translate for developers who havn't learned Obj-C to figure out how you're supposed to implement these charts?

@MarkLyck
Copy link
Author

Fixed the error, by adding the framework where appropriately in the project settings. But beyond being able to test the usability of the chart system, I still have no way of implementing them. And for some one who've never touched a line of code for other devices. The Android "getting started guide" is useless. While all the parameters and how to change the chart, is fairly easy to comprehend. The lack of knowledge with an example of setting up a single thing. Makes the rest of the information useless :(

@danielgindi
Copy link
Collaborator

The ObjC demo is very simple to understand, even if you do not know the
language. The API is exactly the same even though sometimes there are
square brackets around function calls...

You also should not try to develop for iOS without knowledge in ObjC as
that's the language the system is written in, and all of the frameworks too.

@petatester
Copy link

I have same problem than MarkLyck. When I run on simulator there are no problems, but I try to run ChartsDemo on iPhone, but always the same problem:

dyld: Library not loaded: @rpath/Charts.framework/Charts
Referenced from: /private/var/mobile/Containers/Bundle/Application/2FB00EB8-7E0F-4121-801D-D40C71E29C04/ChartsDemo.app/ChartsDemo
Reason: image not found

How add the framework correctly to run demo on iPhone?

Thanks.

@danielgindi
Copy link
Collaborator

danielgindi commented Mar 30, 2015 via email

@petatester
Copy link

I'm trying removing and adding framework reference from target but same result. Did you try with iOS 8.2 or below?

@danielgindi
Copy link
Collaborator

No, I haven't, because it's compiled with a BETA version of Xcode.

@danielgindi
Copy link
Collaborator

I've found a fix for your "library not found" error, you should pull now and try.
It runs on iOS >= 7 now, even though compiling from Xcode 6.3b4

@MartinPajak
Copy link

I try to use it in my swift project, but always get:

dyld: Library not loaded: @rpath/Charts.framework/Charts
Referenced from: ----
Reason: image not found

a short swift demo or HowTo would be really usefull.

@jhays
Copy link

jhays commented May 1, 2015

I was able to resolve this issue by adding the Charts framework under "Embedded Frameworks" as described here:
http://stackoverflow.com/questions/24333981/ios-app-with-framework-crashed-on-device-dyld-library-not-loaded-xcode-6-beta

@danielgindi
Copy link
Collaborator

Friends, this is in the README under instructions. I hate answering the
same question again and again. When adding a framework in Xcode 6, you have
to add as an embedded framework.

‏בתאריך יום שישי, 1 במאי 2015, jhays [email protected] כתב:

I was able to resolve this issue by adding the Charts framework under
"Embedded Frameworks" as described here:

http://stackoverflow.com/questions/24333981/ios-app-with-framework-crashed-on-device-dyld-library-not-loaded-xcode-6-beta


Reply to this email directly or view it on GitHub
#7 (comment)
.

@manuelolmos
Copy link

Something might help that was not marked yet is that if you are working on an Objective-C project you have to set: embedded content contains swift code to YES

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

6 participants