使用Git當版本控制來開發App已經超過8年,有些問題一再遇到,可是一直都沒能直接解決問題,還是得Google找答案。這次我特地開篇文章來記載,其實我只是更新Mac OS就無法使用Git⋯⋯
在終端機上如平常般git pull,居然顯示:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
好在很快用關鍵字去Google,得到一行指令就能輕鬆解決!
xcode-select –install
安裝完工具,能正常工作囉~
此刻,公司的Macbook Pro升至版本10.15.5。
我發現好多應用軟體會重新要求權限,看來更新作業系統時,會同時清除非必要的資料或檔案,包含權限設定如推播通知。
參考:
Comments on: "[Git] 更新Mac OS無法使用Git問題" (1)
其實要兩個減號喔~文字編輯器很神奇地變成一個減字符號⋯⋯
xcode-select – -install
讚讚