The iOS Simulator deployment targets is set to 8.0, but the range of supported deployment target version for this platform is 9.0 to 14.1

Haris Bin Nasir Avatar

·

·

When I was trying to start my flutter app, the following problem appeared in my stack track. The iOS Simulator deployment objectives are set to 8.0, however flutter supports deployment targets from 9.0 to 14.1 for this platform. So, today, I’ve compiled a list of all viable solutions to this problem.

I’ll try to provide all possible solutions to solve this error. let’s start this article without wasting your time.

How The iOS Simulator deployment targets is set to 8.0, but the range of supported deployment target version for this platform is 9.0 to 14.1 Error occurs ?

When I am running my app in ios simulator I am getting below warning message in my Xcode 15.4.

Copied!
The iOS Simulator deployment targets is set to 8.0, but the range of supported deployment target version for this platform is 9.0 to 14.1

My deployment target is 9.0

How to Solve The iOS Simulator deployment targets is set to 8.0, but the range of supported deployment target version for this platform is 9.0 to 14.1?

Solution 1

You can setup your podfile to automatically match the deployment target of all the podfiles to your current project deployment target like this :

Replace below code in your project_directory/ios/Podfile

Copied!
post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end

Replace Above Line With Below code

Copied!
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0' end end end

Solution 2

Just Manually Update Development target in xcode Pods file.

The problem is in your pod files deployment target iOS Version not in your project deployment target iOS Version, so you need to change the deployment iOS version for your pods as well to anything higher than 8.0 to do so open your project workspace and do this:

  • Click on pods.
  • Select each project and target and click on build settings.
  • Under Deployment section change the iOS Deployment Target version to anything more than 8.0 (better to try the same project version).
  • Repeat this for every other project in your pods then run the app.

Solution 3

  1. Delete your Podfile.lock
  2. Delete your Podfile
  3. Build Project
  4. Add initialization code from firebase
  5. cd /ios
  6. pod install
  7. run Project

This Solution was what worked for me.

Solution 4

You can set the Deployment target for all your Pods references :

Copied!
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0' end end end

Or remove the value:

Copied!
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

Conclusion

I hope the above-mentioned solutions were of great assistance to you. Please leave a comment below with your suggestion.

Leave a Reply

Your email address will not be published. Required fields are marked *