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


背景:macOs High Sierra 升級 macOs Mojave后,idea 報錯,Terminal git也不行:

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

處理:

  1、 xcode-select --install

        如提示:xcode-select: error: command line tools are already installed, use "Software Update" to install updates 證明安裝成功

      2、安裝完成后,Terminal里的git可以正常運行了,IDEA里還是同樣的報錯,將Git配置欄里的/usr/bin/git改為git,搞定

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM