Skip to content

The test command fails to find a running iOS simulator #3161

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
vchimev opened this issue Oct 16, 2017 · 1 comment
Closed

The test command fails to find a running iOS simulator #3161

vchimev opened this issue Oct 16, 2017 · 1 comment
Assignees
Milestone

Comments

@vchimev
Copy link

vchimev commented Oct 16, 2017

NativeScript CLI Version: 3.2.1

The following command fails to find a running iOS simulator:

tns test ios --emulator --debug-brk --no-watch

iOS Simulator:

$ xcrun simctl list | grep Booted
    iPhone710 (2BDC5561-F115-4E58-A042-9F7C0C7BCC3D) (Booted)

Output:

mcsofvchimev:appTS vchimev$ tns test ios --emulator --debug-brk --no-watch
Searching for devices...
16 10 2017 19:15:28.589:WARN [karma]: Port 9876 in use
16 10 2017 19:15:28.592:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9877/
16 10 2017 19:15:28.593:INFO [launcher]: Launching browser ios with unlimited concurrency
16 10 2017 19:15:28.603:INFO [launcher]: Starting browser NativeScript Unit Test Runner
Executing before-prepare hook from /Users/vchimev/Work/tmp/appTS/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.2.2
Preparing project...
Project successfully prepared (ios)
Executing after-prepare hook from /Users/vchimev/Work/tmp/appTS/hooks/after-prepare/nativescript-unit-test-runner.js
{ Error
    at Object.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:16:23)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/nativescript-cli.js:15:18)
    at Module._compile (module.js:570:32)
  name: 'Exception',
  message: 'Could not find device by specified identifier \'undefined\'. To list currently connected devices and verify that the specified identifier exists, run \'tns device\'.',
  errorCode: 127,
  suppressCommandHelp: undefined }
@msgitter
Copy link

msgitter commented Feb 19, 2018

Still broken with tns 3.4.2
Which makes debugging tests impossible on iOS!
Problem also with connected real device.

And it seems also for Android broken.

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

No branches or pull requests

4 participants