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

后端 未结 4 833
独厮守ぢ
独厮守ぢ 2020-12-25 12:55

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/ODBl         


        
相关标签:
4条回答
  • 2020-12-25 13:32

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

    0 讨论(0)
  • 2020-12-25 13:38

    The following has worked for me:

    • "Embedded Content Contains Swift Code" to YES
    • Clean
    • Rebuild

    (I suspect, although I cannot prove, that it's really the Clean that fixes this.)

    0 讨论(0)
  • 2020-12-25 13:45

    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!

    0 讨论(0)
  • 2020-12-25 13:47

    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.

    0 讨论(0)
提交回复
热议问题