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

相关推荐
东坡肘子5 天前
Swift 并发正被更广泛地接纳 -- 肘子的 Swift 周报 #133
人工智能·swiftui·swift
文件夹__iOS8 天前
SwiftUI 核心选型:class + ObservableObject VS struct + @State
ios·swiftui·swift
Wenzar_9 天前
# 发散创新:SwiftUI 中状态管理的深度实践与重构艺术 在 SwiftUI 的世界里,**状态驱动 UI 是核心哲学**。但随
java·python·ui·重构·swiftui
大熊猫侯佩10 天前
GeometryReader 生存指南(下集):与恶魔共舞——陷阱、禁忌与最终救赎
swiftui·performance·layout·frame·stack·geometryreader·preferencekey
大熊猫侯佩11 天前
别被系统绑架:SwiftUI List 替换背后的底层逻辑
swiftui·swift·apple
东坡肘子12 天前
从 OpenSwiftUI 到 DanceUI:换个方式 Dive SwiftUI -- 肘子的 Swift 周报 #132
人工智能·swiftui·swift
用户794572239541313 天前
【SwiftyJSON】拯救你的 as? [String: Any]——链式 JSON 访问的正确姿势
swiftui·objective-c·swift
用户794572239541313 天前
【Moya】为什么你的 Alamofire 代码需要再封装一层?
swiftui·objective-c·swift
空中海14 天前
第二章:SwiftUI 视图基础
ios·swiftui·swift