1. 程式人生 > >Mac安裝git,使用時提示 cannot run git xcode-select: note: no developer tools were found, requesting install.

Mac安裝git,使用時提示 cannot run git xcode-select: note: no developer tools were found, requesting install.

1. 蘋果升級了系統到10.13,導致git不能使用,報以下錯誤

no developer tools were found at ‘/Applications/Xcode.app’, requesting install. Choose an option in the dialog to download the command line developer tools.

然後,會點選安裝xcode,這個xcode內容有很多,將近5個g,實際上只需要裝Command_Line_Tools_macOS_10.13_for_Xcode 就可以了,大小大概189MB, 去蘋果的開發者官網就可以下載了,地址 https://developer.apple.com/download/more/


2. 在app store下載了最新的macOS High Sierra系統,安裝時報錯”將安裝器資訊下載到目標宗卷失敗。“

解決這個也很簡單,關閉wifi,再開啟wifi就行了,沒必要去蘋果官網重新下載系統搞一遍。