0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Mac OSアップデート後にコマンドラインからgit操作がエラーした際の解決メモ

0
Posted at

Mac OSアップデート後にコマンドラインからgit操作がエラー

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

softwareupdate --listによるとXcodeがダウンロード可能

% softwareupdate --list                                            
Software Update Tool

Finding available software
Software Update found the following new or updated software:
* Label: Command Line Tools for Xcode 26.2-26.2
        Title: Command Line Tools for Xcode 26.2, Version: 26.2, Size: 858715KiB, Recommended: YES, 

Xcodeをダウンロードしてインストール

% sudo softwareupdate --install "Command Line Tools for Xcode 26.2-26.2"
Software Update Tool
Finding available software
Downloading Command Line Tools for Xcode 26.2

以上で解決した

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?