macos-setup.sh can't find SDK on macOS Big Sur, as it went to 11
Summary
macos-setup.sh assumes that all the macOS version numbers start with 10.x Big Sur broke this pattern by going to 11.0, so that causes some of the sed commands not to work and it can't find the SDK.
Steps to reproduce
- Install macOS 11.0 Big Sur
- Install XCode (and command line tools), which will install MacOSX11.0.sdk in the usual places.
What is the current bug behavior?
It doesn't find the SDK. Various lines in macos-setup.sh assume that the version starts with 10.x. This can actually be fixed
It's possible to add an environment flag to make sw_vers -productVersion
output 10.16 instead of 11.0 (see here for details ), but that doesn't help with the SDK name.
What is the expected correct behavior?
It should find the SDK for 11.0.