iosios16xcode14

Xcode14 crash on launch: dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib


When I upgrade my Xcode to 14, my app crashed and Get an error message: dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib

It's only happen on devices with iOS version below 13,like iOS 12/11,


Solution

  • most likely an interoperability issue between Xcode 14 and older iOS version devices. It has been reported multiple times in GitHub issues. Check this post in Apple Developer Forum.

    So for solutions: add libSwiftCoreGraphics.tbd to your project's Frameworks,Libraries,and Embeded Contents.

    If you are using pods or SPM, also check the updates from the author. For example, SnapKit just upadted their podfile 5 days ago

    enter image description here