I希望您可以在终端上安装Xcode的命令行工具。我正在使用Xcode 5.1.1(5B1008)版本。我已经在Xcode中安装了命令行工具,现在如果我尝试在终端上安装命令行工具,我会得到一个错误。我的xcode-select版本是2311。我尝试了以下两件事情:1.我的路径是/Applications/Xcode.app/Contents/Developer,所以我这样切换sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer。但是仍然无法找到命令。2.我遵循了这个链接,但没有用。xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode45-DP1.app/Contents/Developer'. (No such file or directory)
任何想法都受欢迎。