Problem:
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer/), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
Solution:
xcode-select --install
# optional
xcode-select --switch /Library/Developer/CommandLineTools