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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容