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?
source
share