1: Uninstall xcode, git discovered the error.
mac git xcrun error active developer path error
Solution: sudo Xcode--switch the SELECT /
After installation xcode, you need to change the configuration xcode-select:
Reproduced in: https: //www.cnblogs.com/Kummy/p/5692254.html