The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, in Flutter How can I change the minimum IOS Deploying Target
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
IPHONEOS_DEPLOYMENT_TARGET is set to 8.0 Xcode 12 (Flutter)
In addition to what Akif said, here's a running list of reasons why this error could be showing up for you:
- Set the
MinimumOSversion
to9.0
inios/Flutter/AppFrameworkInfo.plist
- In Xcode, ensure that the iOS deployment target at
Runner -> Project -> Runner
is set to9.0
- In Xcode, ensure that the
Deployment Info
inRunner -> Targets -> Runner
is set to iOS9.0
- Double check that your
GoogleService-Info.plist
is there and was added via Xcode (not copy/pasted into the directory via Finder for example) - Uncomment the
#platform :iOS, '9.0'
line in yourios/Podfile
Then, run the following in your terminal to build with a fresh state:
flutter clean \
&& rm ios/Podfile.lock pubspec.lock \
&& rm -rf ios/Pods ios/Runner.xcworkspace \
&& flutter build ios
Flutter - The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0 && Build input file cannot be found GoogleService-Info.plist
To get rid of this warning:
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 'AppAuth' from project 'Pods')
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 'GTMAppAuth' from project 'Pods')
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-Core' from project 'Pods')
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 'BoringSSL-GRPC' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 5.0, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'leveldb-library' from project 'Pods')
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')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.4.99. (in target 'nanopb' from project 'Pods')
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 'GTMSessionFetcher' from project 'Pods')
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++' from project 'Pods')
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 'abseil' from project 'Pods')
Make sure your Podfile contains this line
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
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['ENABLE_BITCODE'] = 'NO'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
To make the app build successfully and get rid of:
error: Build input file cannot be found: '/Users/User/Downloads/GoogleService-Info.plist' (in target 'Runner' from project 'Runner')
remove and add again through Xcode, the GoogleService-Info.plist file.
Flutter cannot build application
I figured out the issue. Xcode failed to build the application because the iOS wasn't compatible with my version of flutter. I fixed this issue by changing my channel to master
flutter channel master
flutter upgrade
Related Topics
Retrieve Custom Prototype Cell Height from Storyboard
How to Implement the Uitapgesturerecognizer into My Application
Failed to Obtain a Cell from Its Datasource
Restrict to Certain iOS Target Devices for App Store Submission
How to Access Own Window Within Swiftui View
++ Is Deprecated It Will Be Removed in Swift 3
Nsxmlparser on iOS, How to Use It Given a Xml File
Programmatically Creating an Expanding Uitableviewcell
Uitableview - Change Section Header Color
Uiscrollview: Paging Horizontally, Scrolling Vertically
iOS - Calling App Delegate Method from Viewcontroller
Google Plus API for Posting on Wall Like Facebook
How to Change Color of Single Word in Uitextview and Uitextfield
How to Post String with Special Character and Thai Language Using Xml Parsing in Objective C