Xcrun error invalid active developer path causing trouble? We have your back.
At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.
Let’s take a look at how our Support Team recently helped out a customer with the xcrun error: invalid active developer path
How to resolve Xcrun error invalid active developer path
Some of our customers have been running into the following error when they attempt to run an update on macOS while running a git pull command:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
According to our Support Techs, we can resolve the issue by installing or updating Xcode Command-line Tools and explicitly agreeing to the license agreement.
In fact, if we have Xcode installed we can go opt to resolve the issue:
-
- Via command line
- Via Apple Developer download page
How to resolve the xcrun error via command line
- First, we will open the terminal and run the following command to install Xcode:
xcode-select ––install
- Next, we will get the following output:
xcode-select: note: install requested for command line developer tools.
- After the installation is over we can test the git commands through a new terminal.
In case the problem continues, we can go ahead with a reset with this command:
sudo xcode-select --reset
How to resolve the xcrun error Via Apple Developer download page
If the xcode-select –install cannot locate the software, we can download it manually.
We can do this by heading to this link and searching for the appropriate Command Line Tools for (macOS xx.x) Xcode xx.x and then downloading the .dmg file.
According to our Support Techs, we can skip the installation of Xcode if it is already installed and run the following commands in the terminal:
sudo xcode-select --reset sudo xcodebuild -license
[Looking for a solution to another query? We are just a click away.]
Conclusion
In essence, the skilled Support Engineers at Bobcares demonstrated how to resolve the xcrun error.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
None of these commands helped me with this problem. Still have invalid active developer path
Hi,
Please contact our support team via live chat(click on the icon at right-bottom)
Before “brew doctor”, running “xcode-select –install” prompts “xcode-select: error: no developer tools were found, and no install could be requested (perhaps no UI is present), please install manually from ‘developer.apple.com’.”
After “brew doctor”, running “xcode-select –install” prompts the installation dialog to install xcode command line tool.
Thanks!