I updated my macOS, and now Git doesn’t work in the Terminal


If you’re a Mac user and have updated your macOS recently, you may need to run this command in your Terminal to keep using Git commands.

I recently updated to macOS Ventura, and surprisingly when I went to Terminal and typed Git Status, I received an error. I tried Git Pull and received the same error.

Invalid Active Developer Path Terminal Error

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

Fix Invalid Active Developer Path Error

Fortunately, The Onin, on Apple Stack Exchange, provides a simple answer that worked instantly for me. And he’s been updating this answer for over five years with each new Apple OS release. (Amazing!)

The issue is that now that you’re running the new macOS, you must download and install a new Command Line Tools package. To do this, in Terminal, type the following and click return:

xcode-select --install

Immediately, you’ll see the following line stating, “Install requested for command line developer tools.”

Install requested for command line developer tools

Upon successful installation, in the background, a pop-up window should open that reads, “The software was installed.”

The software was installed - pop-up window for Command Line Tools package installation from Terminal.

Once this is finished, try your Git commands again. They should run with no problem. Now, Terminal is working again, so I can use the Git syncing automation I enjoy with Statamic.

I hope this fixes your Invalid Active Developer Path Terminal Error. For more information, explore the resources below.


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

Happy Web Designing!

About the author

Kelly Barkhurst

Designer to Fullstack is my place to geek out and share tech solutions from my day-to-day as a graphic designer, programmer, and business owner (portfolio). I also write on Arts and Bricks, a parenting blog and decal shop that embraces my family’s love of Art and LEGO bricks!

Add comment

Recent Posts