-
-
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
Error when trying to run ChartsDemo on iOS Simulator (image not found) #2035
Comments
Same problem here +1 |
I have been able to work around this problem on simulator, by copying the missing RealmSwift framework files from ~/Carthage/Build/iOS/ directory. You will see 2 files in there. I am not sure so I just copied both of these files into the compile-time directory and put them along with other frameworks, in your case that destination directory would be: /Users/username/Library/Developer/Xcode/DerivedData/ChartsDemo-fmyrryaldqtgmlfcymgmkxrlbxbx/Build/Products/Debug-iphonesimulator/ Compile and it runs good for me on simulator. Hope this helps. |
Weird.. but you can try as @xibo55 said, or maybe a rebuild |
@xibo55 and @liuxuan30: I'm still getting the same issue. I've tried to manually move the RealmSwift framework as well clearing and rebuilding and I can't get it to compile. |
I think the project didn't use Carthage correctly. Here are docs of Carthage and Realm. They show the right way to integrate Realm.
To me, the quick fix is:
|
I never met this issue before, just let carthage handles every thing and it built fine... adding @danielgindi or @petester42 to help |
if I'm understanding correctly you want ChartsRealm to copy its dependencies? From my experience with Carthage this isn't really a thing. Usually you have to add the framework you want plus all of its dependencies to you app. I'd have to look at a bunch of other frameworks to see what is the norm but if copying the dependencies is something that makes people's lives easier then I'm all for it. |
Hi,
When I try to run the ChartsDemo on the iOS Simulator using Xcode 8.1, I get the following crash and error:
dyld: Library not loaded: @rpath/RealmSwift.framework/RealmSwift
Referenced from: /Users/username/Library/Developer/Xcode/DerivedData/ChartsDemo-fmyrryaldqtgmlfcymgmkxrlbxbx/Build/Products/Debug-iphonesimulator/ChartsRealm.framework/ChartsRealm
Reason: image not found
I've run carthage checkout in the main directory to pull in Realm. All of the targets build fine. Does anyone know what I could be forgetting? Thanks.
The text was updated successfully, but these errors were encountered: