Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change iPhone deployment target

I have updated flutter today also with Xcode and I'm getting an error when trying to run my app on IOS

warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')

...

When I go to a runner from Xcode I can only change it to min version 8

enter image description here

Flutter doctor result

[✓] Flutter (Channel stable, v1.12.13+hotfix.9-pre.2, on Mac OS X 10.15.4 19E266, locale en-GB) • Flutter version 1.12.13+hotfix.9-pre.2 at /Users/peter/development/tools/flutter • Framework revision f139b11009 (3 days ago), 2020-03-30 13:57:30 -0700 • Engine revision af51afceb8 • Dart version 2.7.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at /Users/peter/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.4, Build version 11E146 • CocoaPods version 1.8.4

[✓] Android Studio (version 3.6) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 44.0.2 • Dart plugin version 192.7761 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] IntelliJ IDEA Community Edition (version 2019.3) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 42.1.4 • Dart plugin version 193.5731

[✓] Connected device (1 available) • iPhone 11 Pro Max • 269B6B4A-E1E4-4461-B0F8-02DA3D21E477 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)

So how can I change the iPhone deployment target to a higher version in flutter?

UPDATE

Updating the android studio gets rid of the error.

like image 662
delmin Avatar asked Apr 02 '20 09:04

delmin


People also ask

How do I change the deployment target simulator?

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.

How do I change the minimum deployment target in iOS?

Select pods from the drop-down menu. Build settings may be found by selecting each project and target and clicking on them. Change the iOS Deployment Target version from 8.0 to anything higher than 8.0 in the Deployment subsection (better to try the same project version).

Where is iOS deployment target set?

Select the Build Settings tab at the top and search for deployment target. The Deployment section shows four build settings that relate to the deployment target: iOS Deployment Target. macOS Deployment Target.

How do I change deployment targets in Xcode 11?

Change deployment targetSelect your app target and go to General tab, under Deployment Info change target to whatever version you want to support.


1 Answers

If you changed Deployment Target in your Xcode project, open ios/Flutter/AppframeworkInfo.plist in your Flutter app and update the MinimumOSVersion value to match.

MinimumOSVersion section change the OSVersion to anything more than 8.0 (better to try the same project version).

enter image description here

like image 154
Paresh Mangukiya Avatar answered Oct 26 '22 11:10

Paresh Mangukiya