'The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, in Flutter How can I change the minimum IOS Deploying Target
I changed everything to 9.0 in the project but I'm having the same error in a lot of pods.
I tried doing a lot of different things but nothing worked. Does anyone know how can I fix this?
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 'gRPC-C++-gRPCCertificates-Cpp' 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 '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')
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 'nanopb' 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 'BoringSSL-GRPC' 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 'gRPC-Core' 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 'gRPC-C++' from project 'Pods')
Encountered error while building for device.
Solution 1:[1]
I solve it with this code, thanks! At the 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 2:[2]
What worked for me is a combination of @raffaelli-l-c and @arhan-reddy-busam answer.
Ensure that you do the following:
- Set
MinimumOSVersionto 9.0 inios/Flutter/AppFrameworkInfo.plist - Ensure that you uncomment
platform :ios, '9.0'inios/Podfile - Ensure that
ios/Podfilecontains 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
The following routine works for me when doing my production build:
flutter clean \
&& rm ios/Podfile.lock pubspec.lock \
&& rm -rf ios/Pods ios/Runner.xcworkspace \
&& flutter build ios --build-name=1.0.0 --build-number=1 --release --dart-define=MY_APP_ENV=prod
Solution 3:[3]
Solution 4:[4]
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. See flutter documentation section "Review Xcode project settings" -> headline "Deployment Target:".
You could also try updating flutter to 1.22 beta, which supports iOS 14 and XCode 12 (as noted here)
Solution 5:[5]
I tried a bunch of things but what seems to have fixed this for me was:
flutter pub cache repair
Solution 6:[6]
To fix this issue you just need to update the Deployment Target to 9.0. This can be updated by opening the .xcworkspace file, choose the Pods.xcodeproj on Xcode, and updating the iOS Deployment Target to 9.0 or later as the like image below
Open ios/Runner.xcworkspace in Xcode and change
You can't provide support for iOS 8.0 on Xcode 12 unless you import the support files. To provide support by default you would have to use Xcode 11. It would be better to check for the number of users that use your app on iOS 8 and update the minimum supported version to iOS 9 or higher.
Solution 7:[7]
For me what worked is, open XCode in ios folder. Then check and fix possible account related problem in Signing section. Then run flutter run again. And it worked. Not sure why is it related to this error but it worked.
Solution 8:[8]
After couple of days trying to figure out what to do.
The only thing that worked for me was deleting the entire ios directory in my Flutter project, then rebuilding it:
flutter create .
Add GoogleService-Info.plist to Runner.
Add signing & capabilities in Xcode.
Add target properties in Xcode such as sign-in.
As mentioned in: https://stackoverflow.com/a/67224108/7749979
Solution 9:[9]
Make sure, in any of your dart files has not imported the dart.html package. This caused a problem in my case when flutter tries to install the pod.
Solution 10:[10]
Just Follow Below Command Line in Your macOS
- flutter clean
- rm ios/Podfile.lock pubspec.lock
- rm ios/Podfile.lock pubspec.lock
- rm -rf ios/Pods ios/Runner.xcworkspace
Solution 11:[11]

- Open Xcode
- Change Project Document - Project format - Xcode 8.0-Compatible
- Flutter clean, flutter pub get and flutter build iOS
Solution 12:[12]
After trying most of these solutions the only thing that worked for me is to uncomment and add ios 10 in ios/Podfile:
platform :ios, '10.0'
Solution 13:[13]
In my case this error was misleading.
Turns out, the problem was caused by a missing step in Firebase upgrade docs: delete the Fabric build step in XCode.
Here's the article I found that actually solved the cause of this error for me: SO post towards the bottom it mentions the Fabric dependency.
I added the new Run Script in XCode per the firebase docs referenced, removed the Fabric related build phase, and the 8.0 target error went away.
I hope this helps anyone else who went down the PodFile dependency rabbit hole that I did.
Solution 14:[14]
I got so fed up, so I just compiled in Xcode 13. Works for me! Since upgrading to Flutter 2.5.2, I got this weird issue. Minor hassle.
ios/Podfile:
platform :ios, '10.0'
Solution 15:[15]
Change MinimumOSVersion to 9.0 in /ios/Flutter/AppFrameworkInfo.plist.
Then in ios/Runner.xcodeproj/project.bpxproj replace
IPHONEOS_DEPLOYMENT_TARGET = 8.0 to IPHONEOS_DEPLOYMENT_TARGET = 9.0 in three lines.
It also works if you are building your .ipa whit codemagic
Solution 16:[16]
It means you have a bad dart code in your project try to find bad loops in your code, and remove import 'dart:html'; if you not using it.
No matter how hard u try flutter will throw 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 even if you create fresh flutter project and you copy the same code in it, it will still throw error.
Solution 17:[17]
When updating to iOs 14.4 it seems that the path_provider package is not compatible with target 10.0. Currently Firebase package requires target 10.0. Here's the problem, I've had the problem for a month now. Maybe the Flutter team can help. When building iOs, there is an error that cannot be fixed, hic hic.
Launching lib/main.dart on iPhone 12 Pro in debug mode... Running pod install... Running Xcode build... Xcode build done. 29.4s Failed to build iOS app Error output from Xcode build: ? ** BUILD FAILED **
Xcode's output: ? In file included from /Users/maitrongtue/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/ios/Classes/FLTPathProviderPlugin.m:5: /Users/maitrongtue/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/ios/Classes/FLTPathProviderPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found #import <Flutter/Flutter.h> ^~~~~~~~~~~~~~~~~~~ 1 error generated. note: Using new build system note: Building targets in parallel note: Planning build note: Constructing build description
Could not build the application for the simulator. Error launching application on iPhone 12 Pro.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow


