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

  idkblogs.com      June 11, 2021

Shubham Verma

Shubham Verma


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:

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.


Thank you

for taking the time to read this article. 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.