Attempting:
xcrun simctl
in terminal
yields:
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
I have Xcode 6.2 Beta.
Any suggestions?
I solved this problem by entering
Xcode > Preferences > Locations
And assigning the Command Line Tools
This is in Xcode Version 7.2 beta (7C46t)
In terminal, try this.
xcode-select -s /Applications/Xcode.app
/Applications/Xcode.app is your Xcode.app path.
I had the same problem. My application was working well but suddenly in next run, it started throwing the "simctl" error. It seems I had started Xcode update installation in the background.
Fix: I just started the Xcode application and it prompted to install some pending tools update. After Xcode updates, my app started working normally.
Went to Presences > Locations
in Locations:
Command Line Tools: Choose Xcode(YourVersion Of Xcode) and leave it that way.
It should be fine. This worked for me.
If you are interested in command line "approach", please try: installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target /
. In addition, please make sure that xcode-select -s
selected right Xcode installation path.
Make sure you're running XCode (react native dev here) paths are not set when xcode isn't running for me, or you may add the developer tools path to your .bashrc file.
来源:https://stackoverflow.com/questions/29108172/xcrun-unable-to-find-simctl