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

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

    Recently ran into this issue with importing CoreNFC on older iphones (e.g. iPhone 6) and Xcode (11.3.1). I was able to get it to work by

    1. In your Projects, select the target.
    2. Goto General tab on top.
    3. Under the 'Frameworks, Libraries and Embedded Content' section, add the framework (for me it was CoreNFC). Repeat for other targets.
    4. Click on Build Phases on top and expand 'Link Binary with Libraries'.
    5. Make the troublesome framework optional (from required).

    This allowed me to compile for older/newer iPhones without making any code changes. I hope this helps other.

提交回复
热议问题