Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use both Android and IOS simulator simultaneously to test my flutter app during development?

I was wondering if I can set up and use both Android and iOS simulators simultaneously when I develop my flutter app? It makes things easier and allows me to catch platform-specific bugs earlier.

Is this possible?

like image 399
sharath Avatar asked Apr 23 '19 18:04

sharath


People also ask

How do I run two emulators at the same time?

You can run multiple emulators at the same time simply by running your app again. When the AVD manager pops up, instead of selecting your already running emulator, click 'Launch Emulator' and select another emulator to launch.

Is flutter compatible with iOS and Android?

Flutter is an open source framework developed by Google that lets you build natively compiled, multiplatform applications from a single codebase. Flutter 3 supports six platform targets: Android, iOS, Windows, macOS, Linux, and web applications. Flutter widgets are built using a modern framework inspired by React.


1 Answers

Yes. If you have both iOs and Android emulators running, you can use the command flutter run -d all to launch on both devices. If you want to launch on one device with both open, you will have to specify which one by telling it the device id, like flutter run -d emulator-5554.

While developing I like to have the iOs emulator open for debugging in case I want to jump in and see the value of a particular variable at a particular moment, and the android emulator for running the app / designing / iterating.

like image 150
Kris Avatar answered Oct 22 '22 01:10

Kris