If you'd like to use your Apple Mac with OS X for some numerical computation, this site could be useful to you. Most of these packages have been compiled/tested on several version of OS X and XCode Tools.Feel free to contact me with questions or problems! The problem is that GCC has a different interface than Clang, so it doesn't understand all the flags Xcode sets by default. I couldn't make it work for an iOS template app, but it may work if you don't use a template or no Objective-C at all. – hagi Oct 1 '13 at 22:22.
The point of the package is it is the Xcode shipped utilities, but without all the other huge components necessary for Xcode. Not GNU GCC: Wrong. /usr/bin/gcc is a symlink to llvm gcc, but explicit reference to /usr/bin/gcc-4.2 or setting export CC='gcc-4.2' in your.bash. Installing Python 2 on Mac OS X. If you already have Xcode installed, do not install OSX-GCC-Installer. In combination, the software can cause issues that are difficult to diagnose. If you perform a fresh install of Xcode, you will also need to add the commandline tools by running xcode-select.
What This Guide Covers #
This guide explains what packages, tools and settings are available in theTravis macOS CI environment (often referred to as the “CI environment”).
Overview #
Travis CI runs builds in virtual machines that are snapshotted before each buildand rolled back at the end of it. This offers a number of benefits:
- Host OS is not affected by test suites
- No state persists between runs
- Passwordless sudo is available
- It is possible for test suites to install various services via
brewand then customize the configuration of those services at thebeginning of each build.
The environment available to test suites is known as the Travis CIenvironment.
Using macOS #
To use our macOS build infrastructure, add the following to your .travis.yml:
macOS Version #
Travis CI uses macOS 10.13 and Xcode 9.4.1 by default. You can use another version of macOS (and Xcode) by specifying the corresponding osx_image key from the following table:
| osx_image value | Xcode version | Xcode build version | macOS version | JDK |
|---|---|---|---|---|
osx_image: xcode12.2 | Xcode 12.2 | 12B5018i | macOS 10.15.7 | 14.0.2 |
osx_image: xcode12u | Xcode 12.0 | 12A8161k | macOS 10.15.5 | 14.0.1 |
osx_image: xcode12 | Xcode 12.0.1 | 12A7300 | macOS 10.15.7 | 14.0.2 |
osx_image: xcode11.6 | Xcode 11.6 | 11E708 | macOS 10.15.5 | 14.0.2 |
osx_image: xcode11.5 | Xcode 11.5 | 11E608c | macOS 10.15.4 | 14.0.1 |
osx_image: xcode11.4 | Xcode 11.4.1 | 11E503a | macOS 10.15.4 | 14.0.1 |
osx_image: xcode11.3 | Xcode 11.3.1 | 11C505 | macOS 10.14.6 | 14 |
osx_image: xcode11.2 | Xcode 11.2.1 | 11B500 | macOS 10.14.6 | 14 |
osx_image: xcode11.1 | Xcode 11.1 | 11A1027 | macOS 10.14.6 | 14 |
osx_image: xcode11 | Xcode 11.0 | 11A420a | macOS 10.14.6 | 14 |
osx_image: xcode10.3 | Xcode 10.3 | 18E226 | macOS 10.14.4 | 13.0.1 |
osx_image: xcode10.2 | Xcode 10.2.1 | 10E1001 | macOS 10.14 | 13.0.1 |
osx_image: xcode10.1 | Xcode 10.1 | 10B61 | macOS 10.13 | 13.0.1 |
osx_image: xcode10 | Xcode 10.0 | 10A255 | macOS 10.13 | 13.0.1 |
osx_image: xcode9.4Default | Xcode 9.4.1 | 9F2000 | macOS 10.13 | 13.0.1 |
osx_image: xcode9.3 | Xcode 9.3 | 9E145 | macOS 10.13 | 1.8.0_112-b16 |
osx_image: xcode9.2 | Xcode 9.2 | 9C40b | macOS 10.12 | 1.8.0_112-b16 |
osx_image: xcode9.1 | Xcode 9.1 | 9B55 | macOS 10.12 | 1.8.0_112-b16 |
osx_image: xcode9 | Xcode 9.0 | 9A235 | macOS 10.12 | 1.8.0_112-b16 |
osx_image: xcode8.3 | Xcode 8.3.3 | 8E3004b | macOS 10.12 | 1.8.0_112-b16 |
osx_image: xcode8 | Xcode 8.0 | 8A218a | macOS 10.11 | 1.8.0_92-b14 |
osx_image: xcode7.3 | Xcode 7.3.1 | 7D1014 | macOS 10.11 | 1.8.0_92-b14 |
Homebrew #
Homebrew is installed and updated every time the virtual machines are updated.
The Travis Homebrew addon is the simplest, fastest and most reliable way to install dependencies.
The Homebrew addon correctly handles up-to-date, outdated, and missing packages. Manual Homebrew dependency scripts are error-prone, and we recommend against using them.
The Homebrew addon uses the Homebrew database on the build image by default, but can be configured to run brew update if needed.
File System #
VMs running macOS 10.13 use HFS+, VMs running macOS 10.14 and newer use APFS.
JDK and macOS #
Note the pre-installed JDK version (OracleJDK) for each image in the table below.While Mac jobs can test against multiple JDK versions using the jdk key,macOS images up to xcode9.3 can only switch up to Java 8, and images xcode9.4 and later can switch to Java 10 (if pre-installed) and later.In practical terms, if your Mac build requires Java 8 and below, use xcode9.3 (or below); if your build requires Java 10and later, use xcode9.4 (or later).
| osx_image value | Xcode version | macOS version | JDK |
|---|---|---|---|
osx_image: xcode12.2 | Xcode 12.2 | macOS 10.15.7 | 14.0.2 |
osx_image: xcode12u | Xcode 12.0 | macOS 10.15.5 | 14.0.1 |
osx_image: xcode12 | Xcode 12.0.1 | macOS 10.15.7 | 14.0.2 |
osx_image: xcode11.6 | Xcode 11.6 | macOS 10.15.5 | 14.0.2 |
osx_image: xcode11.5 | Xcode 11.5 | macOS 10.15.4 | 14.0.1 |
osx_image: xcode11.4 | Xcode 11.4.1 | macOS 10.15.4 | 14.0.1 |
osx_image: xcode11.3 | Xcode 11.3.1 | macOS 10.14.6 | 14 |
osx_image: xcode11.2 | Xcode 11.2.1 | macOS 10.14.6 | 14 |
osx_image: xcode11.1 | Xcode 11.1 | macOS 10.14.6 | 14 |
osx_image: xcode11 | Xcode 11.0 | macOS 10.14.6 | 14 |
osx_image: xcode10.3 | Xcode 10.3 | macOS 10.14.4 | 13.0.1 |
osx_image: xcode10.2 | Xcode 10.2.1 | macOS 10.14 | 13.0.1 |
osx_image: xcode10.1 | Xcode 10.1 | macOS 10.13 | 13.0.1 |
osx_image: xcode10 | Xcode 10.0 | macOS 10.13 | 13.0.1 |
osx_image: xcode9.4Default | Xcode 9.4.1 | macOS 10.13 | 13.0.1 |
osx_image: xcode9.3 | Xcode 9.3 | macOS 10.13 | 1.8.0_112-b16 |
osx_image: xcode9.2 | Xcode 9.2 | macOS 10.12 | 1.8.0_112-b16 |
osx_image: xcode9.1 | Xcode 9.1 | macOS 10.12 | 1.8.0_112-b16 |
osx_image: xcode9 | Xcode 9.0 | macOS 10.12 | 1.8.0_112-b16 |
osx_image: xcode8.3 | Xcode 8.3.3 | macOS 10.12 | 1.8.0_112-b16 |
osx_image: xcode8 | Xcode 8.0 | macOS 10.11 | 1.8.0_92-b14 |
osx_image: xcode7.3 | Xcode 7.3.1 | macOS 10.11 | 1.8.0_92-b14 |
Gcc For Mac Without Xcode
Compilers and Build toolchain #
- automake
- maven
- mercurial
- pkg-config
- wget
- xctool
- cmake
Languages #
- Go
- Java
- Nodejs
- Python
- Ruby
Runtimes #
Every worker has at least one version of Go, Java, Python, Ruby and NodeJS to accommodateprojects that may need one of those runtimes during the build.
Environment variables #
CI=trueTRAVIS=trueUSER=travisHOME=/Users/travis
Additionally, Travis CI sets environment variables you can use in your build,e.g. to tag the build, or to run post-build deployments.
TRAVIS_BRANCH:For builds not triggered by a pull request this is thename of the branch currently being built; whereas for builds triggeredby a pull request this is the name of the branch targeted by the pullrequest (in many cases this will bemaster).TRAVIS_BUILD_DIR: The absolute path to the directory where the repositorybeing built has been copied on the worker.TRAVIS_BUILD_ID: The id of the current build that Travis CI uses internally.TRAVIS_BUILD_NUMBER: The number of the current build (for example, “4”).TRAVIS_COMMIT: The commit that the current build is testing.TRAVIS_COMMIT_RANGE: The range of commits that were included in the pushor pull request. (Note that this is empty for builds triggered by the initial commit of a new branch.)TRAVIS_JOB_ID: The id of the current job that Travis CI uses internally.TRAVIS_JOB_NUMBER: The number of the current job (for example, “4.1”).TRAVIS_PULL_REQUEST: The pull request number if the current job is a pullrequest, “false” if it’s not a pull request.TRAVIS_SECURE_ENV_VARS: Whether or not secure environment vars are beingused. This value is either “true” or “false”.TRAVIS_REPO_SLUG: The slug (in form:owner_name/repo_name) of therepository currently being built. (for example, “travis-ci/travis-build”).TRAVIS_OS_NAME: On multi-OS builds, this value indicates the platform the job is running on.Values arelinuxandosxcurrently, to be extended in the future.TRAVIS_TAG: If the current build is for a git tag, this variable is set to the tag’s name.
Ruby versions/implementations #
Default macOS Ruby (depends on macOS version) – You need to use sudo to install gems with this Ruby and you can also use the pre-compiled Ruby binaries we made available.
Rubies are built using RVM that is installed per-user.
Gems in the global gem set #
- bundler
- rake
- cocoapods
Python related tools #
- pyenv (via homebrew)
- virtualenv (via pip)
- numpy (via pip)
- scipy (via pip)
- tox (via pip)
Xcode version #
Xcode 9.4.1 is installed with all available simulators and SDKs.Command Line Tools are also installed.
Xcode 12.2 #
Xcode 12.2 is available by adding osx_image: xcode12.2 to your .travis.yml.
Our Xcode 12.2 images have the following SDKs preinstalled:
iphoneos14.2
iphonesimulator14.2
macosx11.0
appletvos14.2
appletvsimulator14.2
watchos7.1
watchsimulator7.1
The Xcode 12.2 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 12.2
iOS 12.4
iOS 13.0
iOS 13.1
iOS 13.2
iOS 13.3
iOS 13.4
iOS 13.5
iOS 14.0
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 12.2
tvOS 12.4
tvOS 13.0
tvOS 13.2
tvOS 13.3
tvOS 13.4
tvOS 14.0
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 5.2
watchOS 5.3
watchOS 6.1
watchOS 6.2
watchOS 7.0
Xcode 12 (Universal) #
Xcode 12.0 is available by adding osx_image: xcode12u to your .travis.yml.
Our Xcode 12.0 images have the following SDKs preinstalled:
iphoneos14.0
iphonesimulator14.0
driverkit.macosx20.0
macosx11.0
The Xcode 12.0 image also comes with the following simulators:

- iOS 14.0
Xcode 12 #
Xcode 12.0.1 is available by adding osx_image: xcode12 to your .travis.yml.
Our Xcode 12.0.1 images have the following SDKs preinstalled:
iphoneos14.0
iphonesimulator14.0
macosx10.15
appletvos14.0
appletvsimulator14.0
watchos7
watchsimulator7
The Xcode 12.0.1 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 12.2
iOS 12.4
iOS 13.0
iOS 13.1
iOS 13.2
iOS 13.3
iOS 13.4
iOS 13.5
iOS 14.0
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 12.2
tvOS 12.4
tvOS 13.0
tvOS 13.2
tvOS 13.3
tvOS 13.4
tvOS 14.0
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 5.2
watchOS 5.3
watchOS 6.1
watchOS 6.2
watchOS 7.0
Xcode 11.6 #
Xcode 11.6 is available by adding osx_image: xcode11.6 to your .travis.yml.
Our Xcode 11.6 images have the following SDKs preinstalled:
iphoneos13.6
iphonesimulator13.6
macosx10.15
appletvos13.4
appletvsimulator13.4
watchos6.2
watchsimulator6.2
The Xcode 11.6 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 12.2
iOS 12.4
iOS 13.2
iOS 13.3
iOS 13.4
iOS 13.5
iOS 13.6
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 12.2
tvOS 12.4
tvOS 13.2
tvOS 13.3
tvOS 13.4
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 5.2
watchOS 5.3
watchOS 6.1
watchOS 6.2
Xcode 11.5 #
Xcode 11.5 is available by adding osx_image: xcode11.5 to your .travis.yml.
Our Xcode 11.5 images have the following SDKs preinstalled:
iphoneos13.5
iphonesimulator13.5
macosx10.15
appletvos13.4
appletvsimulator13.4
watchos6.2
watchsimulator6.2
The Xcode 11.5 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 12.2
iOS 12.4
iOS 13.2
iOS 13.3
iOS 13.4
iOS 13.5
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 12.2
tvOS 12.4
tvOS 13.2
tvOS 13.3
tvOS 13.4
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 5.2
watchOS 5.3
watchOS 6.1
watchOS 6.2
Xcode 11.4.1 #
Xcode 11.4.1 is available by adding osx_image: xcode11.4 to your .travis.yml.
Our Xcode 11.4.1 images have the following SDKs preinstalled:
iphoneos13.4
iphonesimulator13.4
macosx10.15
appletvos13.4
appletvsimulator13.4
watchos6.2
watchsimulator6.2
The Xcode 11.4.1 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 12.2
iOS 12.4
iOS 13.2
iOS 13.3
iOS 13.4
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 12.2
tvOS 12.4
tvOS 13.2
tvOS 13.3
tvOS 13.4
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 5.2
watchOS 5.3
watchOS 6.1
watchOS 6.2
Xcode 11.3.1 #
Xcode 11.3.1 is available by adding osx_image: xcode11.3 to your .travis.yml.
Our Xcode 11.3.1 images have the following SDKs preinstalled:
iphoneos13.2
iphonesimulator13.2
macosx10.15
appletvos13.2
appletvsimulator13.2
watchos6.1
watchsimulator6.1
The Xcode 11.3.1 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 12.2
iOS 12.4
iOS 13.2
iOS 13.3
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 12.2
tvOS 12.4
tvOS 13.2
tvOS 13.3
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 5.2
watchOS 5.3
watchOS 6.1
Xcode 11.2.1 #
Xcode 11.2.1 is available by adding osx_image: xcode11.2 to your .travis.yml.
Our Xcode 11.2.1 images have the following SDKs preinstalled:
iphoneos13.2
iphonesimulator13.2
macosx10.15
appletvos13.2
appletvsimulator13.2
watchos6.1
watchsimulator6.1
The Xcode 11.2.1 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 12.2
iOS 12.4
iOS 13.2
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 12.2
tvOS 12.4
tvOS 13.2
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 5.2
watchOS 5.3
watchOS 6.1
Xcode 11.1 #
Xcode 11.1 is available by adding osx_image: xcode11.1 to your .travis.yml.
Our Xcode 11.1 images have the following SDKs preinstalled:
iphoneos13.1
iphonesimulator13.1
macosx10.15
appletvos13.0
appletvsimulator13.0
watchos6.0
watchsimulator6.0
The Xcode 11.1 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 13.0
iOS 13.1
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 13.0
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 6.0
Xcode 11.0 #
Xcode 11.0 is available by adding osx_image: xcode11 to your .travis.yml.
Our Xcode 11.0 images have the following SDKs preinstalled:
iphoneos13.0
iphonesimulator13.0
macosx10.15
appletvos13.0
appletvsimulator13.0
watchos6.0
watchsimulator6.0
The Xcode 11.0 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 13.0
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 13.0
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 6.0
Xcode 10.3 #
Xcode 10.3 is available by adding osx_image: xcode10.3 to your .travis.yml.
Our Xcode 10.3 images have the following SDKs preinstalled:
macosx10.14
iphoneos12.4
iphonesimulator12.4
appletvos12.4
appletvsimulator12.4
watchos5.3
watchsimulator5.3
The Xcode 10.3 image also comes with the following simulators:
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 12.2
iOS 12.4
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 12.2
tvOS 12.4
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 5.2
watchOS 5.3
Xcode 10.2 #
Xcode 10.2.1 is available by adding osx_image: xcode10.2 to your .travis.yml.
Our Xcode 10.2.1 images have the following SDKs preinstalled:
macosx10.14
iphoneos12.2
iphonesimulator12.2
appletvos12.2
appletvsimulator12.2
watchos5.2
watchsimulator5.2
The Xcode 10.2.1 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
iOS 10.0
iOS 10.1
iOS 10.2
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
iOS 12.2
tvOS 9.0
tvOS 9.1
tvOS 9.2
tvOS 10.0
tvOS 10.1
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
tvOS 12.2
watchOS 2.0
watchOS 2.1
watchOS 2.2
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
watchOS 5.2
Xcode 10.1 #
Xcode 10.1 is available by adding osx_image: xcode10.1 to your .travis.yml.
Our Xcode 10.1 images have the following SDKs preinstalled:
macosx10.14
iphoneos12.1
iphonesimulator12.1
appletvos12.1
appletvsimulator12.1
watchos5.1
watchsimulator5.1
The Xcode 10.1 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
iOS 10.0
iOS 10.1
iOS 10.2
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
iOS 12.1
tvOS 9.0
tvOS 9.1
tvOS 9.2
tvOS 10.0
tvOS 10.1
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
tvOS 12.1
watchOS 2.0
watchOS 2.1
watchOS 2.2
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
watchOS 5.1
Xcode 10.0 #
Xcode 10.0 is available by adding osx_image: xcode10 to your .travis.yml.
Our Xcode 10.0 images have the following SDKs preinstalled:
macosx10.14
iphoneos12.0
iphonesimulator12.0
appletvos12.0
appletvsimulator12.0
watchos5.0
watchsimulator5.0
The Xcode 10.0 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
iOS 10.0
iOS 10.1
iOS 10.2
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
iOS 12.0
tvOS 9.0
tvOS 9.1
tvOS 9.2
tvOS 10.0
tvOS 10.1
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
tvOS 12.0
watchOS 2.0
watchOS 2.1
watchOS 2.2
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 5.0
Xcode 9.4 #
Xcode 9.4.1 is available by adding osx_image: xcode9.4 to your .travis.yml.
– Default when no other osx_image: is specified
Our Xcode 9.4.1 images have the following SDKs preinstalled:
macosx10.13
iphoneos11.4
iphonesimulator11.4
appletvos11.4
appletvsimulator11.4
watchos4.3
watchsimulator4.3
The Xcode 9.4.1 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
iOS 10.0
iOS 10.1
iOS 10.2
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
iOS 11.4
tvOS 9.0
tvOS 9.1
tvOS 9.2
tvOS 10.0
tvOS 10.1
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
tvOS 11.4
watchOS 2.0
watchOS 2.1
watchOS 2.2
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 4.3
Xcode 9.3 #
Xcode 9.3 is available by adding osx_image: xcode9.3 to your .travis.yml.
Our Xcode 9.3 images have the following SDKs preinstalled:
macosx10.13
iphoneos11.3
iphonesimulator11.3
appletvos11.2
appletvsimulator11.3
watchos4.3
watchsimulator4.3
The Xcode 9.3 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
iOS 10.0
iOS 10.1
iOS 10.2
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
iOS 11.3
tvOS 9.0
tvOS 9.1
tvOS 9.2
tvOS 10.0
tvOS 10.1
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
tvOS 11.3
watchOS 2.0
watchOS 2.1
watchOS 2.2
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
watchOS 4.3
Xcode 9.2 #
Xcode 9.2 is available by adding osx_image: xcode9.2 to your .travis.yml.
Our Xcode 9.2 images have the following SDKs preinstalled:
macosx10.13
iphoneos11.2
iphonesimulator11.2
appletvos11.2
appletvsimulator11.2
watchos4.2
watchsimulator4.2
The Xcode 9.2 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
iOS 10.0
iOS 10.1
iOS 10.2
iOS 10.3
iOS 11.0
iOS 11.1
iOS 11.2
tvOS 9.0
tvOS 9.1
tvOS 9.2
tvOS 10.0
tvOS 10.1
tvOS 10.2
tvOS 11.0
tvOS 11.1
tvOS 11.2
watchOS 2.0
watchOS 2.1
watchOS 2.2
watchOS 3.2
watchOS 4.0
watchOS 4.1
watchOS 4.2
Xcode 9.1 #
Xcode 9.1 is available by adding osx_image: xcode9.1 to your .travis.yml.
Our Xcode 9.1 images have the following SDKs preinstalled:
macosx10.13
iphoneos11.1
iphonesimulator11.1
appletvos11.1
appletvsimulator11.1
watchos4.1
watchsimulator4.1
The Xcode 9.1 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
iOS 10.0
iOS 10.1
iOS 10.2
iOS 10.3
iOS 11.0
iOS 11.1
tvOS 9.0
tvOS 9.1
tvOS 9.2
tvOS 10.0
tvOS 10.1
tvOS 10.2
tvOS 11.0
tvOS 11.1
watchOS 2.0
watchOS 2.1
watchOS 2.2
watchOS 3.2
watchOS 4.0
watchOS 4.1
Xcode 9.0 #
Xcode 9.0 is available by adding osx_image: xcode9 to your .travis.yml.
Our Xcode 9.0 images have the following SDKs preinstalled:
macosx10.13
iphoneos11.0
iphonesimulator11.0
appletvos11.0
appletvsimulator11.0
watchos4.0
watchsimulator4.0
The Xcode 9.0 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
iOS 10.0
iOS 10.1
iOS 10.2
iOS 10.3
iOS 11.0
tvOS 9.0
tvOS 9.1
tvOS 9.2
tvOS 10.0
tvOS 10.1
tvOS 10.2
tvOS 11.0
watchOS 2.0
watchOS 2.1
watchOS 2.2
watchOS 3.2
watchOS 4.0
Xcode 8.3 #
Xcode 8.3.3 is available by adding osx_image: xcode8.3 to your .travis.yml.
Our Xcode 8.3.3 images have the following SDKs preinstalled:
macosx10.12
iphoneos10.3
iphonesimulator10.3
appletvos10.2
appletvsimulator10.2
watchos3.2
watchsimulator3.2
The Xcode 8.3.3 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
iOS 10.0
iOS 10.1
iOS 10.2
iOS 10.3
tvOS 9.0
tvOS 9.1
tvOS 9.2
tvOS 10.0
tvOS 10.1
tvOS 10.2
watchOS 2.0
watchOS 2.1
watchOS 2.2
watchOS 3.2
Xcode 8 #
Xcode 8.0 is available by adding osx_image: xcode8 to your .travis.yml.
Our Xcode 8.0 images have the following SDKs preinstalled:
macosx10.11
iphoneos10.0
iphonesimulator10.0
appletvos10.0
appletvsimulator10.0
watchos3.0
watchsimulator3.0
iphoneos9.3
iphonesimulator9.3
appletvos9.2
appletvsimulator9.2
watchos2.2
watchsimulator2.2
Install Gcc On Mac Os
The Xcode 8.0 image also comes with the following simulators:
iOS 10.0
watchOS 3.0
tvOS 10.0
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
watchOS 2.0
watchOS 2.1
watchOS 2.2
tvOS 9.0
tvOS 9.1
tvOS 9.2
Xcode 7.3 #
Xcode 7.3.1 is available by adding osx_image: xcode7.3 to your .travis.yml.
Our Xcode 7.3.1 images have the following SDKs preinstalled:

macosx10.11
iphoneos9.3
iphonesimulator9.3
appletvos9.2
appletvsimulator9.2
watchos2.2
watchsimulator2.2
The Xcode 7.3.1 image also comes with the following simulators:
iOS 8.1
iOS 8.2
iOS 8.3
iOS 8.4
iOS 9.0
iOS 9.1
iOS 9.2
iOS 9.3
watchOS 2.0
watchOS 2.1
watchOS 2.2
tvOS 9.0
tvOS 9.1
tvOS 9.2
by Daniel Kehoe
Last updated 7 December 2016
How to install Apple Xcode Command Line Tools for macOS Sierra. Complete guide to installation.
Xcode is a large suite of software development tools and libraries from Apple. The Xcode Command Line Tools are part of XCode. Installation of many common Unix-based tools requires the GCC compiler. The Xcode Command Line Tools include a GCC compiler. This article shows how to install Xcode Command Line Tools to use the GCC compiler and more.
Installing Ruby on Rails
If you are setting up your computer for developing web applications with Ruby on Rails, see this article for complete instructions:
Summary
- Step 1. Upgrade Your System to macOS Sierra
- Step 2. Open the Terminal Application
- Step 3. Is XCode Already Installed?
- Step 4. Enter Commands
- Step 5. Install XCode Command Line Tools
- Step 6. Verify Installation
MacOS Sierra
To install the newest Xcode Command Line Tools, you’ll need the latest version of macOS. If you’ve owned your Mac for several years and haven’t updated macOS, be prepared to spend several hours updating the operating system.
See Apple’s instructions How to upgrade to macOS Sierra. You can install macOS 10.12 Sierra from the Mac App Store for free. Allow plenty of time for the download and installation (it may take several hours).
If You Updated to macOS Sierra
If you updated to macOS Sierra from an earlier version of macOS, and you previously installed Xcode Command Line Tools, you will need to install the new version of Xcode Command Line Tools as described here.
If you previously installed the full Xcode package, you will need to update Xcode to the newest version (Xcode 8 or newer). After updating Xcode, launch and run the Xcode application and accept the Apple license terms.
Terminal Application
The Terminal application or console gives us access to the Unix command line, or shell. We call the command line the shell because it is the outer layer of the operating system’s internal mechanisms (which we call the kernel).
Find the macOS Terminal application by using the Command-Spacebar combination and searching for “Terminal.” It’s in the Applications/Utilities/ folder.
Try out the terminal application by entering a shell command:
Don’t type the $ character. The $ character is a cue that you should enter a shell command. This is a longtime convention that indicates you should enter a command in the terminal application. The Unix shell command whoami returns your username.

To learn more about Unix shell commands, read The Command Line Crash Course.
Is Xcode Already Installed?
You don’t need the full Xcode package to get the Xcode Command Line Tools. You only need the full Xcode package if you are doing development of applications for the Apple operating systems. However, you may have previously installed the full Xcode package.
Gcc For Mac Xcode Download
Check if the full Xcode package is already installed:
If you see:
the full Xcode package is already installed.
You will need to update Xcode to the newest version (Xcode 8 or newer). Go to the App Store application and check “Updates.” After updating Xcode, be sure to launch the Xcode application and accept the Apple license terms.
If you intend to install Ruby using RVM, and you see a file location that contains spaces in the path:
you must delete Xcode. RVM cannot accommodate spaces in a path so RVM will fail when you attempt to install Ruby. You can either install only the Xcode Command Line Tools (instructions below) or reinstall the full Xcode package.
Install Xcode Command Line Tools
MacOS Sierra will alert you when you enter a command in the terminal that requires Xcode Command Line Tools. For example, you can enter gcc or make.
Try it. Enter:
You’ll see an alert box:
Alternatively, you can use a command to install Xcode Command Line Tools. It will produce a similar alert box. Note the double hyphen:
Click “Install” to download and install Xcode Command Line Tools.
The instructions in the alert box are confusing. You don’t need to 'Get Xcode' from the App Store. Just click 'Install' for the Xcode Command Line Tools. If you have a slow Internet connection, it may take many minutes.
If the download takes a very long time (over an hour) or fails, you can try an alternative. Go to https://developer.apple.com/downloads/more and enter your Apple ID and password. You'll be asked to agree to the terms of the Apple Developer Program. You'll see a list of software packages you can download. Look for the latest version of Command Line Toolsand click to download the .dmg file. Downloading the .dmg file is much faster than waiting forthe command-line-based download. Install the .dmg file by clicking on the package icon.
Verify that you’ve successfully installed Xcode Command Line Tools:
Gcc For Mac Xcode Version
Just to be certain, verify that gcc is installed:
On earlier versions of macOS, it was more difficult to install Xcode Command Line Tools. It required a huge download of the full Xcode package from the Mac App Store or registration as an Apple developer for a smaller Command Line Tools package. Mac OS X Mavericks made installation of Xcode Command Line Tools much simpler.
Alternatives
The OSXGCC Installer is an open source project to provide the GCC compiler and related tools. In a recent blog post, Xcode, GCC, and Homebrew, the project maintainer recommends installing the Xcode Command Line Tools because the open source project is unable to duplicate the complete Apple package (notably, the Node software project isn’t supported).
Start Coding!
With the GCC compiler installed, you can install any Unix system tools you need for software development.
To install Rails, see the article Install Ruby on Rails – macOS.
Want to learn Ruby on Rails? See What is Ruby on Rails?, the book Learn Ruby on Rails, and recommendations for a Rails tutorial.
Credits
Daniel Kehoe wrote the article.
