I’m trying to use Travis to build a Homebrew bottle. As part of that process, I run
brew upgrade && brew upgrade on the build machine. However, this currently appears to fail on
xcode9.4 with this error message:
$ brew upgrade ==> Upgrading 15 outdated packages: [...snip...] swiftlint 0.28.2 -> 0.38.1 [...snip...] swiftlint: A full installation of Xcode.app 10.2 is required to compile this software. Installing just the Command Line Tools is not sufficient. Xcode 10.2 cannot be installed on macOS 10.13. You must upgrade your version of macOS. Error: swiftlint: An unsatisfied requirement failed this build.
I could try and fix this by
brew uninstall-ing some of the preinstalled packages before updating, but that seems like a hacky/brittle way to solve this problem. Does anyone know of a better way to ensure
brew upgrade works in CI?