ios xcrun 找不到 simctl
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29108172/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
xcrun unable to find simctl
提问by alexander.sivak
Attempting:
尝试:
xcrun simctl
in terminal
yields:
在terminal
收益率:
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
xcrun:错误:无法找到实用程序“simctl”,不是开发人员工具或在 PATH 中
I have Xcode 6.2 Beta.
我有 Xcode 6.2 Beta。
Any suggestions?
有什么建议?
回答by fbozo
I solved this problem by entering
我通过输入解决了这个问题
Xcode > Preferences > Locations
And assigning the Command Line Tools
回答by coders
回答by leo.tan
In Terminal, try this.
在终端中,试试这个。
xcode-select -s /Applications/Xcode.app
/Applications/Xcode.appis your Xcode.app path.
/Applications/Xcode.app是您的 Xcode.app 路径。
回答by jsr
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.
我有同样的问题。我的应用程序运行良好,但突然在下一次运行时,它开始抛出“simctl”错误。看来我已经在后台开始安装 Xcode 更新了。
Fix: I just started the Xcode application and it prompted to install some pending tools update. After Xcode updates, my app started working normally.
修复:我刚刚启动了 Xcode 应用程序,它提示安装一些待处理的工具更新。Xcode 更新后,我的应用程序开始正常工作。
回答by Rawand Saeed
While running Xcode, open the Xcodemenu, go to Preferences…, then select Locations
在运行 Xcode 时,打开Xcode菜单,转到Preferences...,然后选择Locations
In Locations, "Command Line Tools", choose your version of Xcode.
在“位置”中的“命令行工具”中,选择您的 Xcode 版本。
It should be fine. This worked for me.
应该没问题。这对我有用。
回答by Serzas
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.
如果你有兴趣在命令行的“办法”,请尝试:installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target /
。另外,请确保xcode-select -s
选择了正确的 Xcode 安装路径。
回答by Anshu
adding xcode in preference-> locations works fine
在首选项中添加 xcode-> 位置工作正常