之前有人问过这个问题,但未解决 here 。
我已经尝试了解决方案 here ,但它没有解决问题。
我收到此错误:
xcrun: error: active developer path ("/Applications/Xcode 2.app/Contents/Developer") does not exist, use xcode-select to change
活跃的开发者路径应该是 而不是 说“Xcode 2.app”,而是“Xcode.app”。
我的问题是:如何将事件路径更改为“Xcode.app”?
我已经尝试了以下方法:
$> xcode-select -switch /Applications/Xcode.app/Contents/Developer
$> xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
我尝试重新安装 Xcode,但问题仍然存在。
最佳答案
您是否尝试使用 sudo 命令以 root 身份执行 switch 命令?
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
关于ruby-on-rails - 更改 Xcode 的事件开发人员路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22679984/