Git is not working after macOS Mojave Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

  • A+
Category:Languages

Last night i updated to macOS Mojave,

This morning I navigated to my work's code base in Command line on my MacBook pro,

typed in "git status" in the repo and received the error:

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

 


The problem is that Xcode Command-line Tools needs to be updated.

Go back to your terminal and hit:

xcode-select --install 

You'll then receive:

xcode-select: note: install requested for command line developer tools 

And be prompted in a window to update Xcode Command Line tools.

After the update is completed, open a new terminal window and your development tools should be returned.

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: