title: Cannot install brew on Mojave with Xcode 10
body: <p>I can not install any brew packages on my mac with the following error info.</p>
  
  <p><strong>Installed on my Mac:</strong>    </p>
  
  <ul>
  <li>macOS 10.14 Beta (18A293u)    </li>
  <li>Xcode 9.3 (9E145)    </li>
  <li>Xcode 10.0 beta (10L176w)   </li>
  </ul>
  
  <p>Type in <code>brew install xxx</code>. The output is:    </p>
  
  <pre><code>Error: Your Xcode (9.3) 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
  </code></pre>
  
  <p>But as I type in <code>xcode-select --install</code>, it says it is not available<br>
  <a href="https://i.stack.imgur.com/pBB2u.png" rel="nofollow noreferrer">Xcode select install error</a></p>
  
  <p>Paths of two versions of Xcode on my Mac:    </p>
  
  <pre><code>/Applications/Xcode-beta.app
  /Applications/Xcode.app
  </code></pre>
  
  <p>And my config output:<br>
  <strong>xcode-select -p</strong>     </p>
  
  <pre><code>/Applications/Xcode.app/Contents/Developer     
  </code></pre>
  
  <p><strong>brew config</strong>    </p>
  
  <pre><code>HOMEBREW_VERSION: 1.6.7
  ORIGIN: https://github.com/Homebrew/brew
  HEAD: 22e9fd772926e389e264cfb328c3d810b06759f9
  Last commit: 5 days ago
  Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
  Core tap HEAD: 854bb90b366169915849fc9a83e941b8883cea1f
  Core tap last commit: 6 hours ago
  HOMEBREW_PREFIX: /usr/local
  CPU: octa-core 64-bit haswell
  Homebrew Ruby: 2.3.6 =&gt;./System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
  Clang: 9.1 build 902
  Git: 2.15.1 =&gt; /Applications/Xcode.app/Contents/Developer/usr/bin/git
  Curl: 7.54.0 =&gt; /usr/bin/curl
  Java: 1.8.0_131
  macOS: 10.14-x86_64
  CLT: N/A
  Xcode: 9.3
  XQuartz: N/A
  </code></pre>