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.
Both
Install nativescript sidekick on macOS 10.13
No code.
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.
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:After that try executing
xcodebuild -versionagain and if it works, you can try starting Sidekick again.Can you try this and inform us if it works?