1. 程式人生 > >[問題] mac執行svn及PyCharm提交命令時出現xcrun: error: invalid active developer path解決方法

[問題] mac執行svn及PyCharm提交命令時出現xcrun: error: invalid active developer path解決方法

mac執行svn命令時候出現:

MacBook-Pro-Nisj:~ nisj$ svn
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
MacBook-Pro-Nisj:~ nisj$

解決方法:

開啟終端輸入

xcode-select --install

回車後,系統彈出下載安裝xcode,點選確認,下載安裝完成後即可。(實際上不是下載xcode,可能下載xcode有關外掛,下載時長約1分鐘)

出現這個錯誤原因可能是因為之前Mac系統升級導致xcode模組出現問題所致。