How to open iOS Simulator in Android Studio for Flutter application

39,028

Solution 1

You can also configure the Command Line Tools from Xcode, by opening Preferences > Locations and selecting it from dropdown.

After selecting Xcode version you can find iOS Simulator name in your Android Studio for flutter project.

enter image description here

Solution 2

If you have fluttered, just execute the command: open -a Simulator.

Solution 3

If iOS device not showing in an android studio then first open up simulator app in mac.

Open simulator app

enter image description here

after simulator is loaded, go to Hardware -> Device -> Manage Device and uncheck the physical device and go to simulator tab and choose the required simulator and check it 'Show as run destination' and reload android studio.

It will start showing in android studio and now you can run your flutter app in both android and iOS.

Manage Device

enter image description here

Solution 4

After a fresh install of Flutter and Xcode, I had to restart my Mac in order to Flutter recognize the iOS Simulator. Probably something with config of older installations.

Solution 5

To install the simulator you have to install Xcode, simulator is not distributed as a standalone app. Once you have installed it follow this guide.

I was thinking that installing Flutter and Dart plugins will link IOS simulator in Android Studio as well.

Yes once installed you can start the iOS simulator from Android Studio and run your flutter app from it but the simulator is only linked, you have to install it yourself.

Share:
39,028
Rohit Singh
Author by

Rohit Singh

Arizona State University Grad Student Research Aide @NASA Psyche Mission App Developer and Instructional Aide @Developer Student Club - ASU You can find me on Linkedin Github Medium Things I love <3 Android JAVA StackOverflow Github Drop an Email. More POWER to Stackoverflow.

Updated on July 09, 2022

Comments

  • Rohit Singh
    Rohit Singh almost 2 years

    Today I have started learning Flutter. I am using Android Studio in Mac. I have already

    • Configured the Flutter and Dart plugins in Android studio.
    • Installed the Flutter SDK.

    So I am able to run Flutter app in Android Emulator. However, when I select iOS simulator (Open iOS Simulator), it says this

    Unable to find application named 'Simulator.app

    enter image description here I do not have any experience is XCode and I have not installed it in my Mac.

    My questions are,

    1. How do I install the Simulator?
    2. Do I need the Xcode installed in Mac for running Simulator? (Does Simulator come with Xcode)
    3. My understanding was that installing the Flutter plugin in Android Studio will import iOS simulator as well. Am I wrong?

    I found similar question but did not get the clarity.