close

[Solved] warning: The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0

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?

  1. 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 in ios/Flutter/AppFrameworkInfo.plist. Make sure that you uncomment platform :ios, '9.0' in ios/Podfile and Make sure that ios/Podfile contains the following post install script:

  2. 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 in ios/Flutter/AppFrameworkInfo.plist. Make sure that you uncomment platform :ios, '9.0' in ios/Podfile and Make sure that ios/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 in ios/Flutter/AppFrameworkInfo.plist
  • Make sure that you uncomment platform :ios, '9.0' in ios/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

  1. Open XCode.
  2. Click on Pods.
  3. Just Set Deployment target to 9.0 to every single Pods. Just like Below.
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,
The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,
warning the ios deployment target,
ios deployment target iphoneos_deployment_target,
warning the ios deployment

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.

Also Check Out Below Tutorials

Leave a Comment

%d bloggers like this: