Nate Stedman

Carthage on Travis CI

November 1st, 2015

Carthage is a minimal dependency manager for Xcode projects. It’s currently not natively supported on Travis CI. Additionally, Carthage is currently written in Swift 1.2, which means that it can’t be built from source for projects using Xcode 7, which only supports Swift 2.

However, it’s easy to install from a binary:

curl -OlL "https://github.com/Carthage/Carthage/releases/download/0.9.4/Carthage.pkg"
sudo installer -pkg "Carthage.pkg" -target /
rm "Carthage.pkg"

By running this as part of your Travis job, Carthage will be installed from a binary package. After that, you can bootstrap away. This is currently tied version 0.9.4 of Carthage, so the URL will have to be manually updated when the next version is released.