剛完成 macOS 作業系統的昇級,開始進入了 Catalina 10.15 這個新世界!
為了想知道目前正進行中的專案,有那些文件檔、程式碼已有更新,我想做個版本變更的存檔。
打開「終端機」,輸入指令:
$ git status
沒想到電腦卻回應我:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
上網求解。還好,方法不難,Command Line Tools for Xcode 得再安裝一下。
再度回到「終端機」,輸入下列指令,問題「搞定」!
$ xcode-select --install