If you are getting this below error. That might be due to you might have recently upgraded your MAC OSX from Yosemite to El Capitan.


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

To resolve this, use the below command


xcode-select --install