macbook m1 git clone指令無法使用?
剛到手現在最香的 macbook air 馬上就安裝docker 來玩看看,但是在取git hub的資料時卻遇到以下錯誤。
xcrun: error:
invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解決方式是在命令列下
xcode-select --install
後下載完就可以使用了。
如果顯示
xcode-select: note: install requested for command line developer tools
就必須更新apple的xcode tool方法很簡單過是將Xcode 更新即可

或是手動更新
https://developer.apple.com/download/more/
登入你的apple ID 下載最新的Command Line Tools for Xcode 並安裝


