Troubleshooting an Xcrun Error After Installing MacOS Updates

Photo by Dmitriy Demidov on Unsplash


Have you run into the following Xcrun error when trying to use Git, via your Terminal, after installing MacOS updates?

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
I faced this issue after installing macOS updates with regard to Catalina version 10.15.7.


I overcame the latter mentioned error by following the steps below:

  1. Open the Terminal.
  2. Download and install the Command Line Tools package by running the following command.
    xcode-select --install

Comments