Brew install fails on OSX because it's expecting XCode 8

osx
homebrew

#1
brew install awscli android-sdk

Fails with:

Error: Your Xcode (7.0.1) is outdated
Please update to Xcode 8.0.
Xcode can be updated from the App Store.

but xcode 8 doesn’t even seem available

$ softwareupdate --list
Software Update Tool
Copyright 2002-2015 Apple Inc.

Finding available software
Software Update found the following new or updated software:
   * RAWCameraUpdate6.21-6.21
       	Digital Camera RAW Compatibility Update (6.21), 7695K [recommended]
   * Safari10.0ElCapitan-10.0
       	Safari (10.0), 68827K [recommended] [restart]
   * iTunesX-12.5.1
       	iTunes (12.5.1), 261748K [recommended]

My build: https://circleci.com/gh/mediapop/patontheback-mobile/313


#2

A workaround is to stop homebrew from updating before installing.

machine:
  environment:
    HOMEBREW_NO_AUTO_UPDATE: 1

#3

that workaround would break another thing. “brew install android-sdk”. It started to break few days ago. As a workaround we are doing “brew update” “brew prune”…


#4

Thanks!

This solution should work for everyone:


#5

http://community.brew.sh/t/brew-now-requires-xcode-8-0/114/2?u=thetamind


#6