question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xcrun: error: unable to find utility "simctl

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

25reactions
rosen-vladimirovcommented, May 16, 2018

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?

0reactions
Fatmecommented, Jul 18, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix the xcrun unable to find simctl error?
open terminal on your mac · type cd.. 2 times · Now go to /Applications/Xcode. · Now type ls, you will find sdk's...
Read more >
How to Fix: xcrun: error: unable to find utility "simctl", not a ...
Xcode > Preferences > Location​​ and if you see the Command Line Tools selector is empty you are at the right place. Thank...
Read more >
Ios – How to fix the xcrun unable to find simctl error - iTecNote
Select the object in IB and go to the 'Connections Inspector'. · Under 'Referencing Outlets' make sure that your object isn't still connected...
Read more >
Error running xcrun simctl and ValueError: No JSON object ...
xcrun: error: unable to find utility “simctl”, not a developer tool or in PATH. Something is wrong with the Xcode command line utilities....
Read more >
simctl not working in Xcode 7.0 an… | Apple Developer Forums
$ xcrun simctl install $DEVICE $PATH An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found