美文网首页
Xcode15打包iOS 13以下安装崩溃修改

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

作者: 深圳阳光 | 来源:发表于2023-11-27 14:37 被阅读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)

相关文章

网友评论

      本文标题:Xcode15打包iOS 13以下安装崩溃修改

      本文链接:https://www.haomeiwen.com/subject/vtgzwdtx.html