xcrun unable to find simctl

落爺英雄遲暮 提交于 2019-11-28 04:14:02

I solved this problem by entering

Xcode > Preferences > Locations 

And assigning the Command Line Tools

This is in Xcode Version 7.2 beta (7C46t)

If you need a GUI instruction See below!!!

leo.tan

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.

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