dyld: Library not loaded: @rpath/libswiftCore.dylib / Image not found

前端 未结 27 2779
我在风中等你
我在风中等你 2020-11-27 14:01

I am running my app from xcode to my iOS device and I get this and black screen on iOS device.

Console text:

dyld: Library not loaded: @rpath/libswif         


        
27条回答
  •  爱一瞬间的悲伤
    2020-11-27 14:42

    In my case, This issue is coming in Objective-c project in which I am using a Swift framework (AirWatch SDK).

    Solutions: I have resolved this issue with Xcode 9.3 and 11.0.1 iOS as mentioned bellow steps :

    1. Drag and drop your swift framework in your project and move in default Framework folder of your project.
    2. Then add them as Embedded binaries as shown in screenshot.
    3. Change your framework status from Required to Optional as shown in screenshot. (Build Phases > Link Binary with Library)

    1. Set Always Embed Swift Standard Libraries to Yes in your build settings.

    2. Set Subpath and select destination as Framework for your added framework in Build Phases> Embed frameworks as shown in screenshot.

    Hope it will help someone.

提交回复
热议问题