文章目录
近期把编译构建环境升级到Xcode15,在此统一记录遇到的问题跟解决方法
在iOS12及以下系统的设备上,Xcode15构建出的APP启动崩溃
崩溃报错如下。
bash
Termination Description: DYLD, Library not loaded:
/System/Library/Frameworks/SwiftUI.framework/SwiftUI
解决方法就是在工程增加链接的参数:add the -weak_framework SwiftUI flag to the Other Linker Flags setting in the Build Settings tab
参考
https://www.jianshu.com/p/26b431f93b61
https://medium.com/@liwp.stephen/solution-app-crash-on-ios-12-build-from-xcode-15-3e6123e31150
https://developer.apple.com/forums/thread/126506
https://github.com/rechsteiner/Parchment/issues/583
https://developer.apple.com/documentation/ios-ipados-release-notes/ios-13-release-notes