这个问题之前已经有人问过,但是没有解决 这里。
我尝试了这里的解决方案,但它并没有解决这个问题。
我得到了这个错误:
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,但问题仍然存在。