xcrun unable to find simctl

安稳与你 提交于 2019-11-27 00:14:06

问题


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?


回答1:


I solved this problem by entering

Xcode > Preferences > Locations 

And assigning the Command Line Tools

This is in Xcode Version 7.2 beta (7C46t)




回答2:


If you need a GUI instruction See below!!!




回答3:


In terminal, try this.

xcode-select -s /Applications/Xcode.app

/Applications/Xcode.app is your Xcode.app path.




回答4:


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.




回答5:


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.




回答6:


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.




回答7:


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!