解决mac升级后,出现的 xcrun: error: invalid active developer path, missing xcrun 错误

最近升级了mac系统,然后接着写代码就出问题了。

  • 报错信息如下:

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

查了大量资料都推荐重新安装xcode,用如下命令:

  1. $ xcode-select --install

但是我用了这条命令也没法,然后又找到以下命令,直接删除了重新安装。

If you installed the command line tools separately, delete them using:

  1. $ rm -rf /Library/Developer/CommandLineTools
上一篇:Error:No marked region found along edge. - Found along top edge.


下一篇:vs2012 asp调试设置 清单目录