8
2

More than 3 years have passed since last update.

Catalinaにアップデートしたらgitコマンドでエラー。xcrun: error: invalid active developer path…

Last updated at Posted at 2020-09-21

エラー内容と解決策 その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です。

スクリーンショット 2020-09-21 17.00.10.png

以上!!

8
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
2