Xcrun: error: invalid active developer path (/Library/ Developer/ CommandLineTools)

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

🙋‍♂️ Shubham Verma    🗓 June 11, 2021


Xcrun: error: invalid active developer path (/Library/ Developer/ CommandLineTools)


W hile your development you might face error "Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)". I have faced this issue today while using Git. You can also face this issue after your macOs upgradation. I was unable to execute any Git command although I have installed Git in my machine. Let's see how to get rid of this issue.

Solution for error - Xcrun: error: invalid active developer path:

To solve this issue you need to update your Xcode Command-line Tools.
To update your "Xcode Command-line Tools", open your terminal and execute following command:

You'll then receive the following output:

Snapshot:
Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)


After executing the command, You will then be prompted in a window to update Xcode Command Line tools. (which may take a while)

Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)


Now click on install and it'll ask for password, then enter the machine's password.

Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)



Now it'll start the downloading the software and will update it.
If it'll ask for try again, click on try again
Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)



Then it'll start the downloading:
Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)



After successfull download, you can see the error "Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)" will not be exist.

Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)




Now, you can see the problem "Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)" is resolved after udating the softwares.



Support our IDKBlogs team

Creating quality content takes time and resources, and we are committed to providing value to our readers. If you find my articles helpful or informative, please consider supporting us financially.

Any amount (10, 20, 50, 100, ....), no matter how small, will help us continue to produce high-quality content.

Thank you for your support!




Thank you

I appreciate you taking the time to read this article. The more that you read, the more things you will know. The more that you learn, the more places you'll go. If you’re interested in Node.js or JavaScript this link will help you a lot.

If you found this article is helpful, then please share this article's link to your friends to whom this is required, you can share this to your technical social media groups also. You can follow us on our social media page for more updates and latest article updates.
To read more about the technologies, Please subscribe us, You'll get the monthly newsletter having all the published article of the last month.