Xcode15升级适配问题记录

文章目录

近期把编译构建环境升级到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://stackoverflow.com/questions/57907817/dyld-library-not-loaded-swiftui-when-app-runs-on-ios-12-using-availableios-13

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

https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html#//apple_ref/doc/uid/20002378

https://blog.csdn.net/tongwei117/article/details/132860813

相关推荐
东坡肘子6 天前
F1:电影很好看,赛事很挣钱 | 肘子的 Swift 周报 #094
swiftui·swift·apple
zhangmeng10 天前
SwiftUI中如何实现子视图向父视图传递数据?
ios·swiftui·swift
瓜子三百克12 天前
SwiftUI 全面介绍与使用指南
ios·swiftui·swift
SoaringHeart12 天前
SwiftUI研究:原生路由导航重构封装研究
前端·swiftui·swift
东坡肘子13 天前
变暗的 Liquid Glass 和消失的 Apple Intelligence | 肘子的 Swift 周报 #093
swiftui·swift·apple
大熊猫侯佩15 天前
SwiftUI 7 新 WebView:金蛇出洞,网页江湖换新天
swiftui·webview·wwdc
瓜子三百克15 天前
defer关键字
swiftui·defer
EngZegNgi17 天前
安卓应用启动崩溃的问题排查记录
android·crash·启动崩溃
大熊猫侯佩17 天前
WWDC 25 风云再起:SwiftUI 7 Charts 心法从 2D 到 3D 的华丽蜕变
swiftui·swift·wwdc
大熊猫侯佩19 天前
Swift 6.2 并发江湖:两大神功破局旧制,代码运行经脉革新(下)
swiftui·swift·wwdc