You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Xcode 16.2编译报错:BoringSSL不支持'-G'选项适配arm64-apple-ios15.0

Xcode 16.2编译项目时BoringSSL构建错误问题

BoringSSL/ssl/tls_method.cc unsupported option '-G' for target 'arm64-apple-ios15.0'

已执行以下操作但问题仍未解决:

  • 将BoringSSL更新至最新版本10.0.6,BoringSSL-GRPC更新至0.0.39

当前Podfile.lock内容如下:

- BoringSSL (10.0.6):
    - BoringSSL/Implementation (= 10.0.6)
    - BoringSSL/Interface (= 10.0.6)
- BoringSSL-GRPC (0.0.39):
    - BoringSSL-GRPC/Implementation (= 0.0.39)
    - BoringSSL-GRPC/Interface (= 0.0.39)
- BoringSSL-GRPC/Implementation (0.0.39):
    - BoringSSL-GRPC/Interface (= 0.0.39)
- BoringSSL/Implementation (10.0.6):
    - BoringSSL/Interface (= 10.0.6)
- BoringSSL/Interface (10.0.6)

尝试在Podfile中添加如下post_install脚本修改编译标志,但错误依旧:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'BoringSSL-GRPC'
      target.source_build_phase.files.each do |file|
        if file.settings && file.settings['COMPILER_FLAGS']
          flags = file.settings['COMPILER_FLAGS'].split
          flags.reject! { |flag| flag == '-GCC_WARN_INHIBIT_ALL_WARNINGS' }
          file.settings['COMPILER_FLAGS'] = flags.join(' ')
        end
      end
    end
  end
end

请问是否有人遇到过此问题,或有解决该构建错误的建议?

内容的提问来源于stack exchange,提问作者Daniel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 18:45:59