最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - Xcode 16.2 build error: BoringSSLssltls_method.cc unsupported option '-G' for target 'arm64-apple-

programmeradmin2浏览0评论

I'm encountering a build error when trying to compile my project in Xcode 16.2. The error message is:

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

I've updated both BoringSSL to the latest version (10.0.6) and BoringSSL-GRPC to version 0.0.39, but I still see the same error.

Here is my current 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)

I tried adding the following post_install script to my Podfile to modify the compiler flags:

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

reference: BoringSSL-GRPC unsupported option '-G' for target 'arm64-apple-ios15.0'

But the error persists. Has anyone encountered this issue before, or does anyone have suggestions on how to fix this build error?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论