iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta

后端 未结 30 2456
鱼传尺愫
鱼传尺愫 2020-11-22 10:08

This crash has been a blocking issue I used the following steps to reproduce the issue:

  • Create a Cocoa Touch Framework project
  • Add a swift file and a
相关标签:
30条回答
  • 2020-11-22 10:40

    In the target's General tab, there is an Embedded Binaries field. When you add the framework there the crash is resolved.

    Reference is here on Apple Developer Forums.

    0 讨论(0)
  • 2020-11-22 10:40

    In case anyone is still experiencing this issue, despite following all the steps outlined in the many other answers, you may need to revoke and recreate your code signing certificate, as per the following:

    https://developer.apple.com/library/ios/qa/qa1886/_index.html

    0 讨论(0)
  • 2020-11-22 10:41

    For any project or Framework project in Xcode that use pods, one easy way to avoid dynamic library (dylb) not to load is to set you pod file to ink in static mode. To do so, just make sure to don't write the following line in your pod file.

    use_frameworks!
    

    Once the line deleted from your file which you saved, simply run form the console:

    $ pod update
    
    0 讨论(0)
  • 2020-11-22 10:42

    I created a framework using Swift3/Xcode 8.1 and was consuming it in an Objective-C/Xcode 8.1 project. To fix this issue I had to enable Always Embed Swift Standard Libraries option under Build Options.

    Have a look at this screenshot:

    0 讨论(0)
  • 2020-11-22 10:42

    In my case the solution was to remove the compiled framework from the Embedded Binaries, which was a standalone project in the workspace, clean and rebuild it, and finally re-add to Embedded Binaries.

    0 讨论(0)
  • 2020-11-22 10:42
    1. Go to file in xcode -> Workspace settings
    2. Click the arrow next to which appears /Users/apple/Library/Developer/Xcode/DerivedData
    3. Select the Derived data and move it to Trash.
    4. Quite the xcode and reopen it.
    5. Clean the project and run again.

    Above steps resolved my issuses.

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