Skip to main content

Caching Cocoapods

Abstract

You can cache Cocoapods content by putting the Bitrise.io Cache:Push Step at the end of your Workflow. To later use this cached data, use the Bitrise.io Cache:Pull Step after Git Clone Step.

Branch-based caching vs key-based caching

This guide is is about legacy, branch-based caching. For key-based caching, check out our in-depth guide: Key-based caching.

Before you start, make sure you have the latest version of the Cocoapods Install Step in your Workflow.

  1. Open your app on Bitrise.

  2. Click the Workflows button on the main page.

    opening-workflow-editor.png
  3. Select a Workflow from the WORKFLOW dropdown menu.

  4. Insert the Bitrise.io Cache:Pull Step after the Git Clone but before the Cocoapods Install Steps.

    Step version of the Cache:Pull Step

    Make sure that your Step is version 1.0.0 or newer. With the older versions, you have to manually specify paths for caching.

  5. Insert the Bitrise.io Cache:Push Step to the very end of your Workflow.

And that is all you have to do! If you wish to use an earlier version of the Cache Steps, you can find more information here.