brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

OS::Mac.sdk

If a specific SDK is requested
  a) The requested SDK is returned, if it's installed.
  b) If the requested SDK is not installed, the newest SDK (if any SDKs
     are available) is returned.
  c) If no SDKs are available, nil is returned.
If no specific SDK is requested
  a) For Xcode >= 7, the latest SDK is returned even if the latest SDK is
     named after a newer OS version than the running OS. The
     MACOSX_DEPLOYMENT_TARGET must be set to the OS for which you're
     actually building (usually the running OS version).
     https://github.com/Homebrew/legacy-homebrew/pull/50355
     https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/Introduction.html#//apple_ref/doc/uid/TP40004626
     Section "About SDKs and Simulator"
  b) For Xcode < 7, proceed as if the SDK for the running OS version had
     specifically been requested according to the rules above.

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/os/mac.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-OS--Mac-sdk-for-pr


# Commit to git

git add Library/Homebrew/os/mac.rbgit commit -m "better docs for OS::Mac.sdk"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-OS--Mac-sdk-for-pr

hub pull-request


# Celebrate!