Skip to content

Cannot specify emulator device while debugging #1522

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

Closed
toddanglin opened this issue Feb 21, 2016 · 4 comments
Closed

Cannot specify emulator device while debugging #1522

toddanglin opened this issue Feb 21, 2016 · 4 comments
Labels
Milestone

Comments

@toddanglin
Copy link

As of 1.6.1, it appears there is a CLI bug that causes problems if you try to specific a device while debugging on an emulator.

Command:
$ tns debug ios --emulator --device "iPad Air 2"

Result:
Error Message in CLI:
Cannot resolve the specified connected device by the provided index or identifier. To list currently connected devices and verify that the specified index or identifier exists, run 'tns device'.

Expected:
App to load in iOS Simulator running as iPad Air 2 with debugger attached

This is a CLI command that worked as expected before 1.6.

@Daxito
Copy link

Daxito commented Feb 21, 2016

+1
Not working here either

@rosen-vladimirov
Copy link
Contributor

Thanks for reporting this. As a workaround you can use:

$ tns emulate ios --device "iPad Air 2" --justlaunch
$ tns debug ios

@rosen-vladimirov rosen-vladimirov added this to the 1.7.0 milestone Feb 22, 2016
@nguyenbn
Copy link

nguyenbn commented Mar 4, 2016

I am also have the same issue on 1.6.2. I tried doing the workaround, but had no luck.

tns emulate ios --device "iPhone 6" --justlaunch
tns debug ios

The simulator opens after the first command, but the second command doesn't launch the debugger window.

@dtopuzov
Copy link
Contributor

dtopuzov commented Jun 6, 2016

Still valid in {N} 2.0.1

@enchev enchev removed this from the 2.1 milestone Jun 6, 2016
@tsonevn tsonevn added this to the 2.5.0 milestone Dec 5, 2016
@pkoleva pkoleva closed this as completed Jan 5, 2017
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

8 participants