BoringSSL-GRPC throws error: unsupported option '-G' for target 'arm64-apple-ios11.0'

I upgraded to macOS 15.0 developer beta and used Xcode 16.0 beta to compile my Flutter project. Now I am encountering an issue that did not appear in the previous system. I would like to know what this issue is. Thank you in advance: /ios/Pods/BoringSSL-GRPC/src/ssl/tls13_client.cc unsupported option '-G' for target 'arm64-apple-ios11.0'.

for target 'arm64-apple-ios11.0'

That makes it seem like your deployment target is iOS 11, which is no longer supported. What happens if you raise your deployment target to something that is supported, like iOS 17?

— Ed Ford,  DTS Engineer

I'm seeing the same issue, and it's unrelated to deployment target. It appears that BoringSSL-GRPC is setting the "-GCC_WARN_INHIBIT_ALL_WARNINGS" as a compiler flag on a per-file basis, and clang v16.0.0 is not recognizing it and treats it just as "-G" and errors out because "-G" is not supported.

The clang behaviour change is probably from this commit

My guess is that this was always an invalid flag, but clang (due to the bug fixed by the above commit) was previously silently ignoring it.

This issue has been addressed here:

https://github.com/grpc/grpc/issues/36888

BoringSSL-GRPC throws error: unsupported option '-G' for target 'arm64-apple-ios11.0'
 
 
Q