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

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

    In Xcode 11

    I was facing the same issue

    Changing "Do Not Embed" in General Tab > "Frameworks, Libraries, and Embedded Content" was still resulting the same error.

    What did solved for me was adding the Framework in Build Phases Tab > Embed Frameworks section

    --Updated---

    I observed that in projects built in previous versions of Xcode Embed Frameworks Section is not available when running in Xcode 11, Find the below steps to achieve the solution:

    1: First need to add the New Copy Files Phase under Build Phases tab.

    2: Second change the name of the added phase to Embed Frameworks

    3: Change the destination to Frameworks.

    4: Add the framework for which the error occurred.

提交回复
热议问题