How to fix Could not build the application for the simulator.
Error launching application on iPhone 11, 12, 13, 14, 15, 16 when using firebase.

Photo by Artur Shamsutdinov on Unsplash
Error launching application on iPhone 11

The iOS Simulator deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0, but the range of supported
deployment target versions is 9.0 to 15.2.99. (in target ‘leveldb-library’ from project ‘Pods’)

Specs satisfying the `cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)` dependency were found, but they required a higher minimum deployment target.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).

Solution 1

cd ios && pod repo update
pod update
flutter run

Solution 2

cd ios && rm Podfile.lock
pod install
flutter run

Solution 3

flutter clean
cd ios && rm Podfile && rm Podfile.lock
flutter pub get or flutter pub upgrade
flutter run
xcode update build setting

--

--

Entrepreneurship, React, Flutter, Firebase, Typescript, Javascript, NodeJS, ChatGPT, Crypto, Blockchain. Visit www.gamevsus.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Phong Yew Tong

Entrepreneurship, React, Flutter, Firebase, Typescript, Javascript, NodeJS, ChatGPT, Crypto, Blockchain. Visit www.gamevsus.com