PureDevOps Community

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

I updated to the latest MAC OS Ventura and I navigated to my codebase in the Command Line on my MacBook pro, typed in “git status” in the repository and received an error:

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

Solution : xcode-select --install

For most of the developer tools issue in mac the xcode install command is the solution and it works for the above issue as well