Xcode15 打包 iOS 13 以下安裝崩潰修改#
Xcode15 打包 iOS 13 以下安裝崩潰修改,參考Xcode15 + iOS13 崩潰中解決辦法,主要是下面這幾個,可以試試
build setting->other linker flags 裡面添加 - ld64
使用 Cocoapods,還必須將 -Wl,-ld_classic 選項添加到 Pod 專案設置中的 OTHER_LDFLAGS 中
iOS12 崩潰,檢查一下 Asset Catalog Compiler 這一項 Generate Swift Asset Symbol Framework Support,把 SwiftUI 去掉
其中 CocoaPods 添加方法如下:
need_otherlinkerflags_frameworks = ['XXX']
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