Nativescript-cli: xcrun: error: unable to find utility "simctl

Created on 16 May 2018  路  5Comments  路  Source: NativeScript/nativescript-cli

Tell us about the problem

Can't launch The Sidekick successfully or the tns devicescommand, I get this error :

Connected devices & emulators
Searching for devices...
Error: Error while executing command 'xcrun simctl list devices'. Please ensure your tools are configured correctly. More info: xcrun: error: unable to find utility "simctl", not a developer tool or in PATH

    at Simctl.simctlExec (/usr/local/lib/node_modules/nativescript/node_modules/ios-sim-portable/lib/simctl.js:116:19)
    at Simctl.getDevices (/usr/local/lib/node_modules/nativescript/node_modules/ios-sim-portable/lib/simctl.js:51:31)
    at XCodeSimctlSimulator.getBootedDevices (/usr/local/lib/node_modules/nativescript/node_modules/ios-sim-portable/lib/iphone-simulator-xcode-simctl.js:184:37)
    at Timeout.setInterval [as _onTimeout] (/usr/local/lib/node_modules/nativescript/node_modules/ios-sim-portable/lib/ios-sim.js:39:63)
    at ontimeout (timers.js:482:11)
    at tryOnTimeout (timers.js:317:5)
    at Timer.listOnTimeout (timers.js:277:5)

same error also comes out in the sidekick main logs.

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.0.1
  • Cross-platform modules: No project yet. just trying to run the sidekick to create a project using it.
  • Runtime(s): No project yet. just trying to run the sidekick to create a project using it.
  • Plugin(s): No project yet. just trying to run the sidekick to create a project using it.

Please tell us how to recreate the issue in as much detail as possible.

Install nativescript sidekick on macOS 10.13

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

No code.

question

Most helpful comment

Hey @moda20 ,
Can you try executing xcodebuild -version? I believe it will show an error that the Developer directory is not set correctly. If that's the case, you can try executing:

$ sudo xcode-select -s /Applications/Xcode.app

After that try executing xcodebuild -version again and if it works, you can try starting Sidekick again.

Can you try this and inform us if it works?

All 5 comments

Hey @moda20 ,
Can you try executing xcodebuild -version? I believe it will show an error that the Developer directory is not set correctly. If that's the case, you can try executing:

$ sudo xcode-select -s /Applications/Xcode.app

After that try executing xcodebuild -version again and if it works, you can try starting Sidekick again.

Can you try this and inform us if it works?

Just to be sure, is Xcode mandatory for sidekick to work on macOS ?

Yes, xcode is mandatory.

@Fatme well I'll have to install it then I'll run the sidekick again and see if the problem persist.

@moda20,
I'm closing this issue. Fell free to write here or open an another in case you have problems or questions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trodellez picture trodellez  路  3Comments

NickIliev picture NickIliev  路  3Comments

kefahB picture kefahB  路  3Comments

ZMW9 picture ZMW9  路  3Comments

PeterStaev picture PeterStaev  路  3Comments