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)
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)
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)
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)
Then it'll start the downloading:
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)
Now, you can see the problem "Xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)" is resolved after udating the softwares.
Strongly Recommended Books For You:
Reading books opens the door to allow in more lights, If we want to know a man of rare intellect, try to know what books he/she reads.For India:
For Other Countries (United States, United Kingdom, Spain, Italy, Germany, France, Canada, etc)
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.