invalid active developer path- when attempting to use Git after upgrading to macOS Sonoma

lifewithcode - Mar 29 - - Dev Community

Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Sonoma?

After upgrading to macOS Sonoma, I tried to run git from Terminal but it kept giving me the following error:

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

Open Terminal, and run the following:

xcode-select --install

Open terminal, git console or vscode again and it works

. . . . . . .
Terabox Video Player