Xcode15打包导致:iOS 13以下从App Store/TestFlight安装崩溃问题
Xcode15打包导致:iOS 13以下从App Store/TestFlight安装崩溃问题
1、Tergets -> Build Settings -> ALL -> Other Linker Flags添加: -Wl、-ld_classic、-ld64。
2、若使用 Cocoapods:选择Pod Tergets -> Build Settings -> ALL -> Other Linker Flags里面添加: -Wl、-ld_classic。
3、iOS12崩溃,Tergets -> Build Settings -> ALL -> Generate Swift Asset Symbol Framework Support,删除SwiftUI。
4、CocoaPods添加方法如下:
// 根据项目需要添加其他链接器标志或框架。例如,如果您需要链接到UIKit框架,您可以将'UIKit'填入['']
need_otherlinkerflags_frameworks = ['框架']
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CODE_SIGN_IDENTITY'] = ''
if need_otherlinkerflags_frameworks.include?(target.name)
config.build_settings['OTHER_LDFLAGS'] = '-Wl,-weak-lswiftCoreGraphics, -ld_classic'
end
end
end
end