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?