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

相关推荐
2501_9160074720 小时前
SwiftUI 声明式语法与 Xcode 预览功能详解
ide·vscode·ios·swiftui·个人开发·xcode·敏捷流程
东坡肘子4 天前
不是模型变慢了,是任务变大了 -- 肘子的 Swift 周报 #146
人工智能·swiftui·swift
Lvan的前端笔记9 天前
SwiftUI:iOS 常用视图组件速查
ios·swiftui·swift
HarderCoder11 天前
SwiftUI 可复用视图设计解剖:从语义到 API 的完整实践
swiftui·swift
东坡肘子11 天前
当灵感跑在了结果前面 -- 肘子的 Swift 周报 #145
人工智能·swiftui·swift
霍霍哈嗨16 天前
swiftUI框架基础
ios·swiftui·swift
东坡肘子18 天前
当每一次写入都有了新价格 -- 肘子的 Swift 周报 #144
人工智能·swiftui·swift
CHB25 天前
uni-app x 蒸汽模式 iOS版 性能测试基准报告 Benchmark
ios·uni-app·swiftui
大熊猫侯佩25 天前
SwiftUI 侦探笔记:iPhone 14 失踪的“刘海”与侯佩的像素诡计
swiftui·swift·apple
大熊猫侯佩25 天前
WWDC26 新 @ContentBuilder 修饰符:SwiftUI 终于有了户口本
swiftui·swift·wwdc