Having headache because of this new issue recently occuring in Flutter IOS builds?
I wasted my 3 days to resolve and understand this exception. On the internet you will find this issue is relevant to your internet most of the time but its not the case. I latterly changed 4 connections to test this theory and it was waste of time!. It caused by boring ssl library.
Add following code in your Pod file: yourproject/ios/Podfile .
After this line 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
Happy coding…
Thanks to Vikas chhabra from StackOverflow