How to Fix xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

ยท

1 min read

Gm! I trust you all are fine; it's a bug fix.

Problem

I ran into an issue on my Mac OS when installing a blockchain project using the Cosmos SDK, which runs on top of the Tendermint Core consensus engine.

After running the following command:

make install

I ran into the error as shown below:

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

Please don't panic; you will learn how to fix it quickly.

How to Fix the Error

To fix this error, open the terminal, and run the following command:

xcode-select --install

Why do we need to do this? The problem is that one needs to agree to the license agreement explicitly.

You may get an error message: "Can't install the software because it is not currently available from the Software Update server."

In this case, run the following command xcode-select --reset

Conclusion

It takes a couple of minutes to resolve this issue might be an hour for you; I hope you will fix it in less than 2 minutes.

Kindly Like and share with others. ๐Ÿ˜Š

I'd love to connect with you on Twitter | LinkedIn | GitHub

See you in my next blog article. Take care!!!

ย