NativeScript / plugin-seed

Build NativeScript Plugins Fast ⚡
https://docs.nativescript.org/plugins/plugin-workspace-guide
Apache License 2.0
45 stars 11 forks source link

Running a demo app on a real iOS device? #14

Open Bezlepkin opened 3 years ago

Bezlepkin commented 3 years ago

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?

NathanWalker commented 3 years ago

@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:

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