Fixing warnings about IPHONEOS_DEPLOYMENT_TARGET even though `platform :ios, '11.0'` is set
Today I've been getting warnings about the IPHONEOS_DEPLOYMENT_TARGET
even though my Podfile looked like it was already set up correctly:
platform :ios, '11.0'
...
It reminds me of a similar issue I ran into long ago (see my post). However this time I decided to give it another try. I stumbled upon a StackOverflow post with everything and anything. This time, what I believe to be the cleanest fix is this one. So instead of overriding the version, we delete the target config. We go from:
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
To:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
flutter_additional_ios_build_settings(target)
end
end
After this, the warnings disappear.