MAC电脑使用git clone的时候出现:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决办法:
命令行输入:
xcode-select --install
Console记录:
justin@lixiaodongdeMacBook-Pro themes % git clone https://github.com/ppoffice/hexo-theme-icarus.git
Password:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
justin@lixiaodongdeMacBook-Pro themes %
justin@lixiaodongdeMacBook-Pro themes %
justin@lixiaodongdeMacBook-Pro themes %
justin@lixiaodongdeMacBook-Pro themes %
justin@lixiaodongdeMacBook-Pro themes % xcode-select --install
xcode-select: note: install requested for command line developer tools
justin@lixiaodongdeMacBook-Pro themes %
justin@lixiaodongdeMacBook-Pro themes %
justin@lixiaodongdeMacBook-Pro themes % git clone https://github.com/ppoffice/hexo-theme-icarus.git
Cloning into 'hexo-theme-icarus'...