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

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 Likes

A workaround is to stop homebrew from updating before installing.

machine:
  environment:
    HOMEBREW_NO_AUTO_UPDATE: 1
2 Likes

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”…

1 Like

Thanks!

This solution should work for everyone:

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