Install Homebrew packages on macOS Mojave Beta
Error: Your Xcode (9.4) is too outdated.
Please update to Xcode 10.0 (or delete it).
Xcode can be updated from
  https://developer.apple.com/download/more/

Error: Xcode alone is not sufficient on Mojave.
Install the Command Line Tools:
  xcode-select --install


This is a different error, however the solution is the same: install the Xcode 10 Beta and then run xcode-select --install.

The Command Line Developer Tools are now available!

First, agree to the invisible license agreement.



Wait for it to install...







Now, Brew works happily.