Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bezlepkin opened this issue Feb 1, 2021 · 1 comment
Open

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

Bezlepkin opened this issue Feb 1, 2021 · 1 comment
Assignees

Comments

@Bezlepkin
Copy link

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 NathanWalker self-assigned this Feb 21, 2021
@NathanWalker
Copy link
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants