我整天都在用头撞桌子,试图解决这个问题!!!
我已经按照这里的建议尝试了建议xcode-select -switch /path/to/xcode/
,但它仍然给我这个错误!
我现在已经完全删除了 XCode 4.4 和命令行工具,运行xcrun
仍然给我这个错误!
即使安装新的 Xcode 副本和命令行工具也会产生这个错误!!
命令的结果..
sh-3.2# xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
sh-3.2# xcrun -find
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode45-DP1.app/Contents/Developer'. (No such file or directory)