xcode更新14+版本后,项目运行崩溃报错

xcode14打出来的包,在iOS13以下的系统发生崩溃。报错信息如下:/usr/lib/swift/libswiftCoreGraphics.dylib

dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib
Referenced from: /var/containers/Bundle/Application/24043C4D-3FCF-431B-88C6-C10324272C25
Reason: image not found
Message from debugger: Terminated due to signal 6

解决办法:
1、Build Phases -> Link Binary With Librarires里面添加 libswiftCoreGraphics.tbd
2、Build Setting ->Other Link Flags下配置-Wl,-weak-lswiftCoreGraphics
3、 如果使用的CocoaPods 运行之后哪个库报错,同样去pod的 Link Binary With Librarires路径下添加 libswiftCoreGraphics.tbd

你可能感兴趣的:(xcode更新14+版本后,项目运行崩溃报错)