Closed swapneshran closed 8 years ago
When you launch the simulator you can select the model to use. Or, open XCode and switch the default device. However, from the CLI tool you can specify the phone to use:
tns emulate ios --available-devices
On my system, for example, I could then do:
tns emulate ios --device "iPad Air 2"
Hi Brett
Thanks for your quick reply.The above command is invoking the ios emulator.
But where to give the available device name in the below command
"tns livesync ios --emulator --watch"
Regards Swapnesh
@swapneshran: only the emulate command can start specific simulator. The livesync
command will start the default one, if no one is running. You can change the device on a running simulator from the menu:
Choose Hardware >>Device
and select the wanted simulator.
If there is no running simulator, follow those steps to start one:
Xcode >> Open Developer Tool Simulator
Hardware >> Device
from its menu.What if I have 2 running instances of simulator with different hardware and I need to run 2 different projects on them for livesyncying. Is it possible somehow?
Hello!
@bfattori When I run tns emulate ios --available-devices
I get an error:
Unknown command 'emulate'.
Has the command changed? 🤔
tns v6.3.3
@JimLynchCodes,
tns emulate
command is deleted and no longer supported.
In order to run an application on emulator, you can use tns run ios --emulator
.
In order to list available devices, you can use tns devices --available-devices
.
Hi
Now I am using angular2 seed advanced repo for development. I am able to develop android app.But in MAC i want to run the app in different device emulator.By default it is opening iPhone6S plus.
Please help what is the command if I want to run on iPhone5 or other device emulators. I have checked other devices are configured properly in xcode. Also showing in the available device by tns
Thanks in Advance Swapnesh