Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 428
Danny D Avatar asked Jun 14 '18 19:06

Danny D


4 Answers

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.

like image 177
Rémi Rousselet Avatar answered Nov 20 '22 12:11

Rémi Rousselet


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:

  • macOS install (Flutter, Android Studio, emulators for Android and IOS)
  • Windows install (Flutter, Android Studio, emulator for Android)

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

like image 43
Marek Bodziony Avatar answered Nov 20 '22 12:11

Marek Bodziony


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
like image 7
Haileapp Avatar answered Nov 20 '22 14:11

Haileapp


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.
like image 2
deepak chaurasia Avatar answered Nov 20 '22 14:11

deepak chaurasia