Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyld: Library not loaded: @rpath/MyDSK.framework/MyDSK -> SWIFT iOS 8.0

Tags:

ios

swift

sdk

I'm currently develop an swift SDK.

When compile the sample with the swift SDK, I got an error

dyld: Library not loaded: @rpath/MyDSK.framework/ODBlockChainWallet


Referenced from: /Users/{}/Sample.app/Sample



Reason: image not found

And if I go on the referenced folder, I can see the swift SDK T_T

Any idea?

like image 869
odemolliens Avatar asked Jun 13 '14 18:06

odemolliens


3 Answers

I was having this problem and was able to fix it by adding the Swift framework (MySDK.framework) to the "Embedded Binaries" section of the "General" tab of the Xcode project settings. Then deleting the derived data and rebuilding.

like image 147
LOP_Luke Avatar answered Nov 08 '22 15:11

LOP_Luke


Maybe you forgot to add the Copy Files Build Phase in your projects targets with "Framework" as destination

like image 2
trandang Avatar answered Nov 08 '22 16:11

trandang


LOP_Luke's solution only half did it for me. After I added my embedded frameworks to the "Embedded Binaries" in the General tab, I had to go to "Build Settings" and check "Embedded Content Contains Swift Code" to YES. By default it is set to NO.

Followed by cleaning and building. Enjoy!

like image 2
Nimrod Shai Avatar answered Nov 08 '22 17:11

Nimrod Shai