エラー内容と解決策 その1
MacをCatalinaにアップデート後、gitを使おうとしたら下記の様なエラーが出ました。
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Command Line Toolsというものがなく怒られているらしいです。
調べたところ以下でインストール出来るとのことなので実行。
$ xcode-select --install
しかし……
またエラー
多くは前記の工程で解決するようですが、私の場合はさらに以下の様なエラーが出ました。
このソフトウェアは、現在ソフトウェア・アップデート・サーバから入手できないため、インストールできません。
解決策 その2
これに対する対策として、以下のページから手動でCommand Line Toolsをインストールすることで解決しました。
More Downloads for Apple Developers
appleIDでログイン後、Command Line Tools
で検索をかけ、自分のXcodeのバージョンとあったものをダウンロードして、解凍後にインストールすればOKです。
以上!!