2 min read | by Jordi Prats
Have you encountered the invalid active developer path error while trying, for example, to use git on your macOS system? This error occurs because Git requires the Command Line Tools for Xcode to be installed on your system (typically you'll encounter this after updating the system)
$ git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Fixing it is going to be quite straighforward, just open your terminal and execute the following command:
A dialog box will appear asking if you want to install the Command Line Tools for Xcode. Click "Install" to begin the installation process
As soon as the the installation is complete, try running the command that failed again. The "invalid active developer path" error should now be resolved.
Posted on 06/04/2023