最近升级了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




相关文章:

  • 2021-08-12
  • 2021-11-12
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-12-16
猜你喜欢
  • 2022-12-23
  • 2021-11-26
  • 2021-04-01
  • 2021-08-30
相关资源
相似解决方案