LoginSignup
1
1

More than 1 year has passed since last update.

Gitコマンドを打つとxcrun: error: が出る

Last updated at Posted at 2023-03-18

はじめに

gitコマンドを打つと下記のエラーが発生した。

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

※注意※
プログラミング学習中の初心者です。
記述に間違いがあれば、ご指摘いただけますと幸いです。

環境

macOS Ventura 13.2.1
git version 2.37.1 (Apple Git-137.1)

解決方法

このエラーは、Xcode Command Line Toolsがインストールされていないか、
古いバージョンが使用されているか、
またはOSのアップデート時に発生するそうです。

今回はアップデートした影響で使用不可となっていました。
下記の通り再インストールで解決しました。

xcode-select --install

参考ページ

1
1
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
1
1