dyld: Library not loaded: @rpath/libswiftCore.dylib problem with new Xcode (10.2)

后端 未结 3 1849
迷失自我
迷失自我 2020-12-30 11:42

None of the referenced answers works. Something new has happened with Xcode 10.2

This happens whether or not I use Swift 4.2 or 5.

It happens immediately wit

3条回答
  •  别那么骄傲
    2020-12-30 12:16

    This issue happened because I update XCode to 10.2 without updating the MacOS to the latest and the sdk that I used also not updated. Apparently these steps had solved my issues :

    1. Update your MacOS the latest
    2. for my case even updating all the required updates not solving the crash issue. In that case don't forget to check if your affected SDK/framework already rebuild from the latest XCode (10.2), since The problem went away after I rebuild the SDK with the latest XCode (10.2).
    3. For my case, we used jenkins to release the app, if the cloud still using old xcode and os, the .ipa will still crash. Need macos and xcode on jenkins cloud to be also updated.
    4. Because updating the cloud will affect everything (near the release date) so either I roll back the os and xcode, or I use the old sdk/framework (before rebuild state). But using the second option will make it crash on simulator but atleast no crash issue if release the app.

提交回复
热议问题