Can I run iOS emulator on Windows using Android studio Avd manger?

58,551

Solution 1

In order to test your flutter app in iOS Simulator,you have to do the following installation procedures into your MacBook:

  1. Install Android Studio/Visual Studio Code and all the Flutter/Dart Plugins/Extensions.
  2. Make Sure that your XCode version is >= 9.2
  3. Install Flutter Bundle for Mac
  4. After Running the Flutter doctor in the terminal and make sure all the important dependencies are installed.
  5. Import the Flutter Project from the Windows to the Mac and Open it in the Android Studio/Visual Studio or Copy Paste the Code from the Windows to the Mac main.dart file
  6. Open iOS Simulator and test the flutter app from the Android Studio/Visual Studio device selection

Solution 2

No, it is not possible. Any iOS operations require Xcode.

So either use an OSX virtual machine or use a mac. But from Windows, you won't be able to run an iOS emulator.

Solution 3

Unfortunately it's impossible :(

Flutter app can run on Android and IOS emulators with Android Studio, but ONLY on Apple machines (not Windows). So if you have Android Studio installed on Windows machine you won't have IOS emulator.

This info isn't obvious in Android Studio documentation, but you can find more details in Flutter installation guide:

So in your case the best way is to develop flutter apps on your Mac.

Solution 4

Use VirtualBox to install MacOS, and then use the virtual MacOS to create an IOS emulator from XCode.

Solution 5

You cannot create an iOS emulator.. However, after running your app on Android simulator you can go to:

  1. Flutter inspector
  2. Platform and then select iOS or Android to override target platform which will toggle rendering and gesture behaviors between Android and iOS.
Share:
58,551

Related videos on Youtube

Danny D
Author by

Danny D

Updated on March 10, 2022

Comments

  • Danny D
    Danny D about 2 years

    I am writing a simple Flutter app on Windows using Android Studio. I am able to test my app on Android emulators well but I can't seem to figure how to add an iOS emulator to AVD manager nor connect to my Mac Pro and deploy to iPhone/iPad. Is that even possible? I do have a Mac Pro with Xcode installed and connected to an iPad.

    • Günter Zöchbauer
      Günter Zöchbauer almost 6 years
      You need an OSX machine for that.
    • Gabe Sechan
      Gabe Sechan almost 6 years
      Apple doesn't make dev tools for windows. And even if they did, it wouldn't run from the Android device manager
  • Psychotechnopath
    Psychotechnopath about 4 years
    What about connecting an iOS device (Like an iphone) by usb? Will that work or will I also need a MAC (Asking this because I do not own any apple-stuff - but I do not want to get a macbook only for flutter development. Might be able to get my hands on an iphone). I've also read about Xamarin. Is that a possibility maybe?
  • Tony Brand
    Tony Brand over 3 years
    I cannot see platform in Flutter Inspector
  • deepak chaurasia
    deepak chaurasia over 3 years
    This feature is present in android studio. I am not sure about other ide's.
  • Lakshmi
    Lakshmi about 3 years
    Same doubt I have . Is there any possibility to connect iPhone via USB and test the app in Android Studion windows
  • Mike Irving
    Mike Irving about 2 years
    this answer leans to talking of web development. I believe the question relates to app development, so needs the iOS Simulator, not a web browser