McL*_*ion 22 macos xcode xcrun
我已经将OSX Lion升级到Mountain Lion并重新安装了命令行工具(因为升级删除了它们).从那以后xcrun不再起作用了.xcode-select设置为/ usr/bin,二进制文件也在该目录中,但是如果我使用参数运行xcrun(例如xcrun gcc),它会显示:
xcrun: Error: failed to exec real xcrun. (No such file or directory)
我已尝试使用xcode-select再次设置路径并重新安装CLT.什么都没有帮助.
有任何建议如何解决这个问题?
小智 74
我有同样的问题.最初我正在为我的xcode-switch做以下事情:
$ sudo xcode-select -switch /Applications/Xcode.app/
Run Code Online (Sandbox Code Playgroud)
然而真正需要的是:
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
Run Code Online (Sandbox Code Playgroud)
这解决了我的问题.不确定是否需要sudo.
| 归档时间: |
|
| 查看次数: |
16298 次 |
| 最近记录: |