If you've just upgrading your MacOS, you may encounter errors when trying to
build Neovim from source due to an incompatible XCode CommandLineTools (CLT)
version. You may also encounter warnings/errors when running brew
commands.
The quickest fix for these issues is to downgrade XCode CLT to the previous version until a fix is released for the latest version of XCode CLT.
- Remove all existing XCode CLT versions from your system
$ sudo rm -rf /Library/Developer/CommandLineTools
- Download/Install previous XCode CLT versions from Downloads - Apple Developer
- Once a previous version of XCode CLT is installed, rerunning the previously failing command(s) (e.g. build neovim from source, any
brew
command, etc.) should now pass with no warnings/errors
- Fix fatal errors when trying to build neovim from source
- Fix warnings when running
brew
commands