flutter run
command does not launch in iOS Simulator. It launches good on Android simulator though. Using Mac. It seems to build the app only for Android.
Asked
Active
Viewed 3.4k times
13

Ronan Boiteau
- 9,608
- 6
- 34
- 56

sivag1
- 4,734
- 3
- 32
- 35
-
1please check https://stackoverflow.com/a/54671608/4479395. it worked for me. – MUHAMMED IQBAL PA Feb 13 '19 at 14:01
2 Answers
31
- First ensure
flutter doctor
runs good and all necessary iOS components are installed. - Then manually opened the Simulator app in the Mac.
- Then ensure the simulator shows up in
flutter devices
. - Now if you run the
flutter run
command, it built the app for iOS and ran on the iOS Simulator.

Ronan Boiteau
- 9,608
- 6
- 34
- 56

sivag1
- 4,734
- 3
- 32
- 35
-
3"Then ensure the simulator shows up in flutter devices.". This step seems particularly problematic :/ – theLastNightTrain Apr 12 '19 at 20:10
-
1I had Xcode installed and was running the Simulator, but `flutter run` didn't seem to see it. Running `flutter doctor` showed there were some commands that needed to be run after installed Xcode. Doing that fixed the problem for me. – Scribblemacher Aug 10 '20 at 19:47
-
NOTE: You can use flutter run -d PREFIX_OF_DEVICE_NAME to start it on a specific device. So for iPhone on ios simulator, have the simulator running, then run flutter run -d iPhone - which you will see is the FIRST part of the name of the device when you run `flutter devices`. And you can only launch the ios flutter project if the simulator is ALREADY running, which you can launch from the command line on mac, by running `open -a Simulator` – Brad Parks Sep 08 '21 at 23:08
1
run flutter doctor, you may found a problem relating to Xcode, type the two commands provided to fix the problem and will appear.

Aziz
- 461
- 7
- 18