发布于 4年前

MacOS升级后出现的 xcrun: error: invalid active developer path, missing xcrun

在升级了MacOS系统之后出现了错误,如下:

# git add .
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

在终端中输入git命令出现了上述错误,后来想到应该是升级了系统导致的 在终端输入:

xcode-select –install

重装command line tools 就好了

©2020 edoou.com   京ICP备16001874号-3