xcrun missing問題

前言

今天在安裝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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章