Xcode15升级适配问题记录


近期把编译构建环境升级到Xcode15,在此统一记录遇到的问题跟解决方法

在iOS12及以下系统的设备上,Xcode15构建出的APP启动崩溃

崩溃报错如下。

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

相关推荐

  1. Xcode15升级问题记录

    2024-04-20 18:42:05       15 阅读
  2. 升级Xcode15,iOS17问题解决

    2024-04-20 18:42:05       55 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-20 18:42:05       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-20 18:42:05       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-20 18:42:05       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-20 18:42:05       18 阅读

热门阅读

  1. python图表用户界面(gui)的选择

    2024-04-20 18:42:05       12 阅读
  2. springboot 项目eureka注册中心切换为nacos+config

    2024-04-20 18:42:05       14 阅读
  3. 高频前端面试题汇总之手写代码篇

    2024-04-20 18:42:05       14 阅读
  4. Edge的使用心得与深度探索

    2024-04-20 18:42:05       16 阅读
  5. CPU执行过程

    2024-04-20 18:42:05       16 阅读
  6. Ansible离线安装

    2024-04-20 18:42:05       20 阅读
  7. Elasticsearch(1)

    2024-04-20 18:42:05       36 阅读