73

I have started to learn flutter by Google and installed it in android studio. I have an emulator for Android but I don't know how to run this in iOS.

Is it possible to run an iOS emulator in windows? If yes, how can I do that?

6
  • 4
    using VMWare u can install Xcode and then u can use IOS simulate for running any application in IOS Commented Feb 27, 2018 at 6:36
  • 1
    any other way that consume lot of ram and process Commented Feb 27, 2018 at 7:39
  • 1
    see my below answer hope it's helpful for u Commented Feb 27, 2018 at 7:55
  • 2
    any way for ubuntu ? Commented Jul 21, 2019 at 19:17
  • This only will help you to show how the UI works on iOS. ![enter image description here](i.sstatic.net/D0E8Z.jpg) try this then run Commented Jan 25, 2020 at 22:48

5 Answers 5

55

If the purpose is only testing how the UI works on iOS, then Flutter Inspector will do the job.

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.

Sign up to request clarification or add additional context in comments.

5 Comments

@Michael Hathi I can't find the flutter inspector :(
@Shayan make sure you have installed the flutter plugin for Android Studio. Once installed, flutter inspector can be found in the right side pane.
This doesn't do the job. There are unexpected differences between flutter on android and ios that aren't shown by changing anything in the flutter inspector.
@Shayan I used Android 4.1. I can't find Toggle Platform Mode in Flutter Inspector.
this is the best answer
15

Most iOS developers use (in a separate window) VMWare WorkStation (a virtual Machine) and install MacOS with XCode.

You can always go back to VMWare, but these 2 links might be helpful.

https://www.dreamytricks.net/ios-emulator-windows-run-ios-apps/

https://developer.xamarin.com/guides/cross-platform/windows/ios-simulator/

2 Comments

i think i need to install VMWare another emulator is not quite smooth ..thanks @Mohammad Ali
Most developers will just buy a mac. It can build for both iOS and Android.
8

maybe it's too late. But I will answer anyway. You can try IOS UI using this flutter package device_preview.

2 Comments

No, it is not showing platform specific widgets, it is just changing device size.
Thank you! Settings this up took a bit but now it is working amazing-- this allows me to debug on my laptop with any popular device out there! Great recommendation
5

It seems there is no direct way to run the app on iOS emulator unless you use Mac pc or laptop. However, this article provides you with an indirect way to run the app. Developing and debugging Flutter apps for iOS without a Mac

Comments

0

You can use a tool like Odevio, it's a tool that will let you access a remote Mac OS build machine on which you can test your app.

Odevio is a desktop application that can be installed from the website: https://www.odevio.com

Once installed you can setup your Apple Developer Account with Odevio in the Apple menu.

You can also directly start building within the build menu and with a Configuration build type.

For a more detailed tutorial you can check a full tutorial here : https://odevio-cli.readthedocs.io/en/latest/tutorial/5_create_apple_developer_account.html

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.