前言

今天在安装brew的时候,发现以下问题:

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

解决

  • 重装xcode command line

    xcode-select --install
    
  • 没解决的话,可以跑这条

    sudo xcode-select -switch /
    

参考

https://www.jianshu.com/p/50b6771eb853

posted on 2023-09-11 00:44  eryoung2  阅读(28)  评论(0编辑  收藏  举报