Xcode::Install

Build Status Coverage Status Gem Version Code Climate

Install and update your Xcodes automatically.

$ gem install xcode-install
$ xcode-install install 6.3

Installation

$ gem install xcode-install

Usage

XcodeInstall will ask for your credentials to access the Apple Developer Center, they are stored using the CredentialsManager of Fastlane.

To list available versions:

$ xcode-install list
6.0.1
6.1
6.1.1
6.2
6.3

By default, only the latest major version is listed.

To install a certain version, simply:

$ xcode-install install 6.3
###########################################################               82.1%
######################################################################## 100.0%
Please authenticate for Xcode installation...

Xcode 6.3
Build version 6D570

This will download and install that version of Xcode. It will also be automatically selected.

Limitations

Because some dependencies uses C extensions, a working Xcode is required to actually install this gem (see #17).

Unfortunately, the installation size of Xcodes downloaded will be bigger than when downloading via the Mac App Store, see #10 and feel free to dupe the radar. 📡

Thanks

This downloading script which has been used for some inspiration, also this for doing the installation.

Contributing

  1. Fork it ( https://github.com/neonichu/xcode-install/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request