Cocoapods + Command Line Tool - dyld: library not loaded: @ rpath / Realm.framework / Versions / A / Realm

I created a command line tool project in Xcode 8.2.1, then I ran pod initand added RealmSwiftto it. After pod installI opened the file .xcworkspace.

The project compiles fine, but at runtime I get the following error:

dyld: Library not loaded: @rpath/Realm.framework/Versions/A/Realm
Referenced from: /Users/myuser/Library/Developer/Xcode/DerivedData/myproject-eqotetgxsfjvxjfevywenvddnfdm/Build/Products/Debug/myproject
Reason: image not found
Program ended with exit code: 9

How can i use cocoapods here?

+4
source share
2 answers

Please make sure that your project under “Linking Binary Files to Libraries” as “Optional” is not as “Required” for Pod_PROJECT-NAME.framework

enter image description here

0
source
0

Source: https://habr.com/ru/post/1664398/


All Articles