[MacOS]Fix “xcrun: error: invalid active developer path”

When you update your MacOS version and the xcode, you may encounter the following error:

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

The solution is fairly simple. Just run the below command in your terminal.

xcode-select –install