Xcode15打包iOS 13以下安装崩溃修改

2023-11-27  本文已影响0人  深圳阳光

Xcode15打包iOS 13以下安装崩溃修改,参考Xcode15 + iOS13崩溃中解决办法,主要是下面这几个,可以试试

1.build setting->other linker flags里面添加-ld64

2.使用 Cocoapods,还必须将 -Wl,-ld_classic 选项添加到 Pod 项目设置中的 OTHER_LDFLAGS中

3.iOS12崩溃,检查一下Asset Catalog Compiler这一项 Generate Swift Asset Symbol Framework Support,把SwiftUI去掉

其中CocoaPods添加方法如下:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['CODE_SIGN_IDENTITY'] = ''

       config.build_settings['OTHER_LDFLAGS'] = '-Wl,-weak-lswiftCoreGraphics, -ld_classic'

      end
    end
  end
end

参考资料如下:

Xcode15打包iOS 13以下安装崩溃修改-腾讯云开发者社区-腾讯云 (tencent.com)

上一篇 下一篇

猜你喜欢

热点阅读