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

tns prepare ios --provision starts simulator #2889

Closed
PeterStaev opened this issue Jun 14, 2017 · 5 comments
Closed

tns prepare ios --provision starts simulator #2889

PeterStaev opened this issue Jun 14, 2017 · 5 comments
Assignees
Labels
Milestone

Comments

@PeterStaev
Copy link
Contributor

If you execute tns build ios --for-device the CLI searches for a running device and if none is found it starts the default simulator image:

➜  demo git:(nativescript) ✗ tns build ios --for-device
Executing before-prepare hook from /Users/peter/Documents/NativeScriptProjects/demo/hooks/before-prepare/nativescrip
t-dev-android-snapshot.js
Executing before-prepare hook from /Users/peter/Documents/NativeScriptProjects/demo/hooks/before-prepare/nativescrip
t-dev-sass.js
Found peer node-sass
Executing before-prepare hook from /Users/peter/Documents/NativeScriptProjects/demo/hooks/before-prepare/nativescrip
t-dev-typescript.js
Found peer TypeScript 2.2.2
Executing before-prepare hook from /Users/peter/Documents/NativeScriptProjects/demo/hooks/before-prepare/nativescrip
t-push-notifications.js
Preparing project...
Project successfully prepared (ios)
Executing after-prepare hook from /Users/peter/Documents/NativeScriptProjects/demo/hooks/after-prepare/nativescript-
dev-android-snapshot.js
Executing after-prepare hook from /Users/peter/Documents/NativeScriptProjects/demo/hooks/after-prepare/nativescript-
dev-sass.js
All SASS source files removed from app package
Building project...
Searching for devices...
Build settings from command line:

Is there any requirement that requires a running simulator or attached device when building with the --for-device flag?

@PanayotCankov
Copy link
Contributor

Side note: Requesting the list of connected devices starts an emulator. I've seen the same problem in commands such as tns prepare ios --provision that are supposed to list provisioning profiles but also filters provisioning profiles for the connected devices.

@dtopuzov
Copy link
Contributor

Looks to be duplicate of #2757

@PeterStaev Can you please try with nativescript@next, it should be fixed.

@PeterStaev
Copy link
Contributor Author

@dtopuzov , I can confirm that this is fixed in nativescript@next 👍

@briandilley
Copy link

This is not fixed:

briandilley@Brians-MacBook-Pro:~$ tns --version
3.2.0-2017-07-10-9398

tns prepare ios --provision XXXXX still launches a simulator

@dtopuzov dtopuzov reopened this Jul 11, 2017
@dtopuzov dtopuzov added the bug label Jul 11, 2017
@dtopuzov dtopuzov changed the title Building iOS --for-device requires a running device tns prepare ios --provision starts simulator Jul 11, 2017
@rosen-vladimirov rosen-vladimirov added this to the 3.2.0 milestone Jul 13, 2017
@rosen-vladimirov
Copy link
Contributor

Hey @briandilley ,
Can you try with latest @next version - we've applied a fix for this in our master branch.

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

No branches or pull requests

6 participants