Hello Guys How are you all? Hope You all are fine. When I was trying to run my flutter app and suddenly I get the following error in my stack track. warning: The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0 in a flutter. So today Here I come with all possible solutions for this error.
We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.
How warning: The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0 Error Occurs ?
When I was trying to run my flutter app and suddenly I get the following error in my stack track.
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'GoogleAppMeasurement' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'FirebaseAuth' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'GoogleUtilities' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'vibration' from project 'Pods')
How to Solve warning: The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0 Error?
- How to Solve warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 Error?
To solve warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 error just Set
MinimumOSVersion
to 9.0 inios/Flutter/AppFrameworkInfo.plist
. Make sure that you uncommentplatform :ios, '9.0'
inios/Podfile
and Make sure thatios/Podfile
contains the following post install script: - warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 Error
To warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 this error just Set
MinimumOSVersion
to 9.0 inios/Flutter/AppFrameworkInfo.plist
. Make sure that you uncommentplatform :ios, '9.0'
inios/Podfile
and Make sure thatios/Podfile
contains the following post install script:
Solution 1
This is because XCode 12 does only support building for the iOS target versions 9 – 14. Unfortunately the default iOS target set by flutter is 8. But you should be able to change the target in the ios/Runner.xcworkspace file using XCode.
To Resolve this error Just make sure that,
- Set
MinimumOSVersion
to 9.0 inios/Flutter/AppFrameworkInfo.plist
- Make sure that you uncomment
platform :ios, '9.0'
inios/Podfile
- Make sure that
ios/Podfile
contains the following post install script:
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
This Solution Solved my Problem.
Solution 2
Just replace this code at the ios/Podfile end of the PodFile.
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
end
end
Solution 3
- Open XCode.
- Click on Pods.
- Just Set Deployment target to 9.0 to every single Pods. Just like Below.

Summery
So, It’s All About this error. I hope this tutorial helps you to solve your error. Please Comment Below if You stucks anywhere with my code.
Leave a Reply