Skip to content
Discussion options

You must be logged in to vote

If I delete depends_on xcode: ["16.0", :build], will everything still build fine, using Swift from Xcode on macOS 15 & 26, while using Swift from Homebrew Core on macOS 14? Or is some depends_on xcode statement still necessary?

Without depends_on xcode your formula will just fail to build if Xcode is needed and the system doesn't have it installed.

If such a statement is necessary, I shouldn't use depends_on xcode: ["16.0", :build], because 16.0 is useless. But would depends_on xcode: ["26.0", :build] preclude macOS 14 from building mas, because Xcode 26 cannot be installed on macOS 14?

You'll probably want to do something like

on_sequoia :or_newer do
  depends_on Xcode: ["26.0", :bui…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rgoldberg
Comment options

Answer selected by rgoldberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants