plugin-seed
plugin-seed copied to clipboard
Running a demo app on a real iOS device?
I'm developing an audio player plugin with the ability to control on the lock screen for iOS. The emulator does not support such controllers. How do I run a demo project on a real iOS device?
@Bezlepkin Sure thing. Open workspace.json and search for --emulator and just globally replace with nothing/blank to remove that option. That option is removed in latest plugin seed, just fyi.
Now when you run your demo apps:
- it will prompt for device to run on if multiple are connected
- if nothing is connected it will open default emulator/simualtor
- if you want to run on a particular device you can do the following:
ns device ios --available-devices
// or...
ns device android --available-devices
To list your available devices.
Then copy your Device Identifier for the connected device and you can run with the following:
nx run demo:ios --device=00008030-000408D42692802E
or for the angular demo app:
nx run demo-angular:ios --device=00008030-000408D42692802E