Skip to content

Cannot specify emulator device while debugging #1522

Closed

Description

@toddanglin

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.

Activity

  1. Daxito commented on Feb 21, 2016

    @Daxito

    +1
    Not working here either

  2. rosen-vladimirov commented on Feb 22, 2016

    @rosen-vladimirov
    Contributor

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

    $ tns emulate ios --device "iPad Air 2" --justlaunch
    $ tns debug ios
    
  3. added this to the 1.7.0 milestone on Feb 22, 2016
  4. nguyenbn commented on Mar 4, 2016

    @nguyenbn

    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.

  5. modified the milestones: 2.0, 1.7.0 on Mar 14, 2016
  6. modified the milestones: , 2.0 on Apr 18, 2016
  7. dtopuzov commented on Jun 6, 2016

    @dtopuzov
    Contributor

    Still valid in {N} 2.0.1

  8. removed this from the 2.1 milestone on Jun 6, 2016
  9. added this to the 2.5.0 milestone on Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions