Bobcares

Xcrun error invalid active developer path | Resolved

PDF Header PDF Footer

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

  1. First, we will open the terminal and run the following command to install Xcode:
    xcode-select ––install
  2. Next, we will get the following output:
    xcode-select: note: install requested for command line developer tools.
  3. 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.

GET STARTED

3 Comments
  1. zatff

    None of these commands helped me with this problem. Still have invalid active developer path

    Reply
    • Hiba Razak

      Hi,
      Please contact our support team via live chat(click on the icon at right-bottom)

      Reply
  2. Leo

    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!

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Get featured on the Bobcares blog and share your expertise with a global tech audience.

WRITE FOR US
server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

Docker Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management to us, and use that time to focus on the growth and success of your business.

TALK TO US Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!