As seen in this - https://github.com/GoogleContainerTools/kpt/issues/962 github issue, Xcode does not seem to create a symlink for MacOSX11.1.sdk, so Homebrew fails to install anything. I'm sure Homebrew isn't be the only program failing to build code because of this error.
The solution would be to reinstall the Command-line Tools or create these symlinks yourself if reinstalling doesn't fix it:
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
Note: This is only a temporary fix to get builds affected by this issue working again, however it may break the SDK in some unknown ways.
2
0
7.0k