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

相关推荐
用户79457223954134 天前
【Lottie】让设计稿上的动效直接"活"在 App 里
swiftui·swift
用户79457223954136 天前
【SnapKit】优雅的 Swift Auto Layout DSL 库
swiftui·swift
Mr_Tony6 天前
iOS / SwiftUI 输入法(键盘)布局处理总结(AI版)
ios·swiftui
东坡肘子6 天前
苹果的罕见妥协:当高危漏洞遇上“拒升”潮 -- 肘子的 Swift 周报 #130
人工智能·swiftui·swift
曾经我也有梦想13 天前
SwiftUI 如何使用 UIKit 组件
swiftui
东坡肘子13 天前
一墙之隔,不同的时空 -- 肘子的 Swift 周报 #129
人工智能·swiftui·swift
曾经我也有梦想14 天前
ViewModifier 和 圆角以及渐变色
swiftui
zhangjikuan8916 天前
SwiftUI 状态管理与架构实战
ios·架构·swiftui
大熊猫侯佩16 天前
浣熊市生存手册:在 Xcode 预览中驯服“支离破碎”的 AI 流式数据
swiftui·stream·xcode 26·generable·foundationmodel·xcode previews·partially gener
曾经我也有梦想17 天前
ObservableObject @Published @ObservedObject那些事
swiftui