macOS Catalina(系統篇):xcrun: error: invalid active developer path (), missing xcrun at: /Library

問題原因

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

出現場景

git

svn 不能正常使用

idea 提示 svn路徑不正確

解決方式

打開命令終端運行

xcode-select --install

回車後,系統彈出下載xcode組件,點擊確認,下載完成後即可。

xcode-select: note: install requested for command line developer tools

問題分析

剛開始以爲 svn路徑不正確,多次確認後無誤;

有以爲是svn沒了,想想 mac 自己的subversion 不可能出錯;

最終在svn --version,給了我報錯提示:

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

然後我就 Command+c,Command+v,打開百度,一頓操作。

問題總結

Mac中很多軟件都需要依賴xcode的先關組件。

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