Homebrew supports and recommends the latest Xcode and/or Command Line Tools available for your platform (see OS::Mac::Xcode.latest_version and OS::Mac::CLT.latest_version in Library/Homebrew/os/mac/xcode.rb).
See OS::Mac::STANDARD_COMPILERS in Library/Homebrew/os/mac.rb.
When a new Xcode release is made, the following things need to be updated:
Library/Homebrew/os/mac/xcode.rb OS::Mac::Xcode.latest_versionOS::Mac::CLT.latest_versionOS::Mac::Xcode.detect_version_from_clang_versionLibrary/Homebrew/os/mac.rb OS::Mac::STANDARD_COMPILERS
© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/Xcode