问题描述
stRusherdeMacBook-Pro:~ tuanShao$ brew update xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Stashing your changes: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: Failure while executing: git stash save --include-untracked --quiet
解决方案
xcode--select --install
stRusherdeMacBook-Pro:~ tuanShao$ brew update warning: unable to unlink .yardopts: Permission denied warning: unable to unlink CONTRIBUTING.md: Permission denied warning: unable to unlink SUPPORTERS.md: Permission denied fatal: cannot create directory at '.github': Permission denied Error: Failure while executing: git pull --quiet origin refs/heads/master:refs/remotes/origin/master
解决思路
提升权限
sudo chown -R $USER:admin /usr/local
cd /usr/local git status git reset --hard origin/master git clean -d