Carthage is a dependency manager for macOS and iOS: builds your dependencies and provides you with binary frameworks. On Bitrise, we have a dedicated Step to handle Carthage dependencies in your build, and of course you can cache these dependencies.
Configuring Carthage caching ⚓
To cache Carthage dependencies:
- Make sure you have the Bitrise.io Cache:Pull and Bitrise.io Cache:Push Steps in your Workflow.
- Set the Carthage command to run input of the Carthage Step to
bootstrap
. - Go to the Bitrise.io Cache:Push Step and find the Cache paths input.
-
On a new line, add the path to your
Carthage directory
and indicate that it should be cached if theCartfile.resolved
changes:./Carthage -> ./Cartfile.resolved