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





免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM