Appears when Mac uses the git command:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Solution
1. Terminal input
xcode-select --install
Then follow the prompts to install