Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open iOS Simulator in Android Studio for Flutter application

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.

like image 954
Rohit Singh Avatar asked Apr 18 '19 12:04

Rohit Singh


People also ask

Can I run iOS simulator on Android studio?

Issue of iOS Simulators not showing in Android Studio: In Android Studio, if you click on the devices tab, it will show you Chrome and Android emulators. There is not other options to add an iOS simulator.

How run iOS emulator on Windows Flutter Android studio?

Click on the Flutter Inspector from the right pane and click on 'Toggle Platform Mode' from the top menu of the newly opened box. This will change the UI of the running app on your device. @Michael Hathi I can't find the flutter inspector :( @Shayan make sure you have installed the flutter plugin for Android Studio.


2 Answers

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

like image 103
Jignesh Patel Avatar answered Sep 21 '22 14:09

Jignesh Patel


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

like image 20
Bruce Lee Avatar answered Sep 18 '22 14:09

Bruce Lee