Ionic: Select emulator model and output console log

A very helpful command in Ionic development with iOS, is to select wich emulator model you wanna use and print console.log() outputs on terminal.

When I’m working with Ionic and emulating on iOS, I like to use this command line to start emulator on livereload mode, select the iPhone emulator model and print logs on terminal:

ionic cordova run ios -lc --target "iPhone-8"

-l = live reload
-c = output console log

You can list the models that you have installed with this command:

ionic cordova emulate --list

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *