Xcrun: error: invalid active developer path On my Mac OS

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



After upgrading to macOS, you can get the following error:

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


Solution

Open Terminal, and run the following:


xcode-select --install

This will download and install the Command Line Tools package and fix the problem. 
You do not need Xcode, you can install only the Command Line Tools here

If the above alone doesn't do it, then also run:


sudo xcode-select --reset

Or if you don't understand please comment first.

Xcrun: error: invalid active developer path On my Mac OS Xcrun: error: invalid active developer path On my Mac OS Reviewed by TechTubeHQ on September 10, 2022 Rating: 5

No comments:

Powered by Blogger.