Have you upgraded to OS X El Capitan from App Store ?
Have you suddenly started getting the following error in your project?
错误提示:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决办法: xcode-select --install