Mac appears when using the git command: xcrun: error: invalid active developer path

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

Guess you like

Origin blog.csdn.net/qq_36936730/article/details/115717632