Xcode 15 (iOS17) 打包的项目在iOS 12系统上启动崩溃

04-10 阅读 0评论

用xcode 15打包出来的项目在iOS 12 的系统上启动就崩溃,并且是在进入appdelegate 之前的编译阶段就崩溃了

Xcode 15 (iOS17) 打包的项目在iOS 12系统上启动崩溃,Xcode 15 (iOS17) 打包的项目在iOS 12系统上启动崩溃,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,设置,系统,崩溃,第1张
(图片来源网络,侵删)

1、Build Settings -> Other Linker Flags -> Add -> -ld64

其中“-ld64”可以有三个值“-Wl、-ld_classic、-ld64” 理论上需要设置 “-ld64”即可

附上官方社区回复:

“New Features

A new linker has been written to significantly speed up static linking. It’s the default for all macOS, iOS, tvOS and visionOS binaries and anyone using the “Mergeable Libraries” feature. The classic linker can still be explicitly requested using -ld64, and will be removed in a future release.
 (108915312)

Known Issues

Xcode 15 (iOS17) 打包的项目在iOS 12系统上启动崩溃,Xcode 15 (iOS17) 打包的项目在iOS 12系统上启动崩溃,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,设置,系统,崩溃,第2张
(图片来源网络,侵删)

Binaries using symbols with a weak definition crash at runtime on iOS 14/macOS 12 or older. This impacts primarily C++ projects due to their extensive use of weak symbols. (114813650) (FB13097713)

Workaround: Bump the minimum deployment target to iOS 15, macOS 12, watchOS 8 or tvOS 15, or add -Wl,-ld_classic to the OTHER_LDFLAGS build setting.”

2、当这个时候设置之后,当debug 环境可以正常时候,切换到release 环境会继续崩溃,虽然报错是汇编代码,但是很明显是和之前的不一样

需要处理:Build Settings ->Asset Catalog Compiler-> Generate Swift Asset Symbol Framework Support,把SwiftUI去掉,(iOS 12 是还不支持 swiftUI 的,当时的UI框架应该是UIKit 和storyboard)

Xcode 15 (iOS17) 打包的项目在iOS 12系统上启动崩溃,Xcode 15 (iOS17) 打包的项目在iOS 12系统上启动崩溃,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,设置,系统,崩溃,第3张
(图片来源网络,侵删)

免责声明
本网站所收集的部分公开资料来源于AI生成和互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,人围观)

还没有评论,来说两句吧...

目录[+]