潦草白纸

解决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


来自为知笔记(Wiz)


posted on 2016-12-19 10:59  潦草白纸  阅读(6917)  评论(1编辑  收藏  举报

导航