Error message after upgrade MacOS:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun.
brew uninstall vim macvim
brew uninstall python3
brew uninstall --ignore-dependencies python3
brew install vim --with-python3
brew install macvim --with-override-system-vim
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept
brew unlink vim
brew link --overwrite --force macvim
which vim # /usr/local/bin/vim
cd /Users/xzhou/k-vim/bundle/YouCompleteMe
brew install cmake
sudo python3 install.py --clang-completer --js-completer
References URLs: ycm-core/YouCompleteMe#914
xcode-select --install
If you haven't launched Xcode after updating it, do so now. Xcode will ask for permission to install additional components. Let it install those components.