DEV Community

lifewithcode
lifewithcode

Posted on • Edited on

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

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

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video