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

后端 未结 30 2470
鱼传尺愫
鱼传尺愫 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:45

    The same thing was when I've created a new Configuration and Build Scheme.

    So the solution for me was to run

    pod install
    

    for this newly created Configuration.

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

    If you're using Xcode 11 or newer:

    1. Navigate to the settings of your target and select General.

    1. Scroll down to Frameworks, Libraries and Embedded Content.

    2. Make sure the Embed & Sign or Embed Without Signing value is selected for the Embed option if necessary.

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

    After trying all the methods available on internet and my own trial and error tricks 100 times. Finally I was able to solve it. – Apeksha Sahu 6 mins ago
    Goto iTunes in Mac --> accounts-->Authorize this computer – Apeksha Sahu 5 mins ago
    second step.... Goto developer in settings in iPad and iPhone and reindex with identifiers and clear trust computers everything. It worked for me........ ....... After reinstalling Mac OSHigh seria 10.13.15 version from Mac OS seirra beta latest version, to reinstalling Xcode latest version, after updating all certificates. etc etc etc... as many methods as you can think I did. –

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

    I had to (on top of what mentioned here) add the following line to Runpath Search Paths under Build Settings tab:
    @executable_path/Frameworks

    enter image description here

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

    If you are using a third-party framework, and using Cocoapods as your dependency manager, try doing a pod install to refresh your pods.

    This crash was occurring on a third-party library I was using, so glad the above solution worked for me, hope it works for you!

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

    Try with changing flag ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES (in earlier xcode versions: Embedded Content Contains Swift Code) in the Build Settings from NO to YES.

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