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

前端 未结 27 2595
我在风中等你
我在风中等你 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:36

    None of the other solutions helped me, but everything was fixed by deleting Xcode's Derived Data directory.

    0 讨论(0)
  • 2020-11-27 14:36

    None of the above solutions worked for me. I changed the iPhone Developer Certificate trust settings in Keychain. It should be Always Trust. Change it to Use System Defaults. Double click the certificate in Keychain to open the option screen Discovered that from this blog

    0 讨论(0)
  • 2020-11-27 14:38

    For me Cleaning the project solve the issue!

    0 讨论(0)
  • 2020-11-27 14:38

    I had this problem before in iPod touch iOS 9.3. And I used all the methods mentioned in this post, but none of them worked. I checked my project setting. And in the other link flag, I found I added -Wl,-sectcreate,__RESTRICT,__restrict,/dev/null.

    This flag prevents dyld insert in the jailbroken phone. When I delete this flag, the app can be launched again. I am not sure why it worked. Because in iPhone se iOS 10 I don't have to delete this line. But it did work in iPod touch iOS 9.3. So check it if you have the same situation like me.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-11-27 14:43

    I had this same issue. I ended up adding the framework in the following locations:

    1. General > Embedded Binaries
    2. General > Linked Frameworks and Libraries
    3. Build Phases > Link Binaries with Libraries

    The embedded binaries seemed to be the key for me.

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