Problems with C++ and gems on OSX Catalina
Turned out that I had a bunch of weird symlinks in my /usr/local/include
folder.
I removed the whole folder and reinstalled Homebrew and everything went back to normal again.
Found the solution through a swift forum it worked with me it seems that somehow the commandline tools got corrupted or just deprecated.
TL;DR;
- Remove CommandLine Tools directory:
sudo rm -rf /Library/Developer/CommandLineTools
- Recreate with:
sudo xcode-select -s /Applications/Xcode.app