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