close

[solved] The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0, in Flutter How can I change the minimum IOS Deploying Target

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 mine stack track. The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0, in Flutter How can I change the minimum IOS Deploying Target in 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 The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0 in Flutter Error occurs and How can I change the minimum IOS Deploying Target?

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

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 deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0 and Flutter How can I change the minimum IOS Deploying Target ?

  1. How to Solve The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 and Flutter How can I change the minimum IOS Deploying Target ?

    to Solve The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 and Flutter How can I change the minimum IOS Deploying You can set up your profile to automatically match the deployment target of all the profiles to your current project deployment target like Solution 1.

  2. The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 and Flutter How can I change the minimum IOS Deploying

    to Solve The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 and Flutter How can I change the minimum IOS Deploying You can set up your profile to automatically match the deployment target of all the profiles to your current project deployment target like Solution 1.

Solution 1: setup deployment target in podfile

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

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

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: Manually Update Development target in xcode

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: pod install

  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: set the Deployment target

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

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:

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

Summery

So it’s all About All possible solutions. Hope this above-all solution helped you a lot. Comment below Your thoughts and your queries. Comment Below on your suggestion.

Check Out Below Article

Leave a Comment

%d bloggers like this: