我整天都在桌子上跳动,试图解决这个问题!!!
我已经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)