# \#build-cache

**URL:** https://discuss.bitrise.io/tag/build-cache/11.md

[Latest](https://discuss.bitrise.io/latest.md) · [Categories](https://discuss.bitrise.io/categories.md) · [Tags](https://discuss.bitrise.io/tags.md)

---

## [Robolectric tests have become flaky](https://discuss.bitrise.io/t/robolectric-tests-have-become-flaky/26010)

<div class="topic-metadata">

**Author:** [@vincent.bolta](https://discuss.bitrise.io/u/vincent.bolta)\
**Replies:** 7\
**Last updated:** [July 3, 2026, 3:11pm UTC](https://discuss.bitrise.io/t/robolectric-tests-have-become-flaky/26010 "2026-07-03T15:11:15Z")

</div>

Since two weeks our unit tests that use Robolectric seem to be very flaky. On some runs they work perfectly well, on other runs they seem to fail with: \> Task :data:bookmarks:impl:testDebugUnitTest BookmarksRepositoryI…

---

## [Error while using build cache for Xcode](https://discuss.bitrise.io/t/error-while-using-build-cache-for-xcode/25743)

<div class="topic-metadata">

**Author:** [@jonathan.cuendet](https://discuss.bitrise.io/u/jonathan.cuendet)\
**Replies:** 2\
**Last updated:** [February 4, 2026, 9:16am UTC](https://discuss.bitrise.io/t/error-while-using-build-cache-for-xcode/25743 "2026-02-04T09:16:55Z")

</div>

I’m trying to activate build cache for Xcode step in my bitrise.yaml file, if it’s “off”, my pipeline works without any issues, but if I turn it on, I hit the bellow error. I tried several solutions from updating fastla…

---

## [Build Cache for Xcode - option not to force SWIFT\_ENABLE\_EXPLICIT\_MODULES](https://discuss.bitrise.io/t/build-cache-for-xcode-option-not-to-force-swift-enable-explicit-modules/25664)

<div class="topic-metadata">

**Author:** [@danube83](https://discuss.bitrise.io/u/danube83)\
**Replies:** 5\
**Last updated:** [November 26, 2025, 1:48am UTC](https://discuss.bitrise.io/t/build-cache-for-xcode-option-not-to-force-swift-enable-explicit-modules/25664 "2025-11-26T01:48:51Z")

</div>

Problem Statement When the build cache option is enabled, SWIFT\_ENABLE\_EXPLICIT\_MODULES=YES is automatically added to CLI xcodebuild options, which affects all projects in the build environment. However, some of our pro…

---

## [Scheduling large amounts of builds triggers \`HTTP 401: Jwt is expired\` for some of them](https://discuss.bitrise.io/t/scheduling-large-amounts-of-builds-triggers-http-401-jwt-is-expired-for-some-of-them/25280)

<div class="topic-metadata">

**Author:** [@stherold](https://discuss.bitrise.io/u/stherold)\
**Replies:** 1\
**Last updated:** [June 27, 2025, 9:06am UTC](https://discuss.bitrise.io/t/scheduling-large-amounts-of-builds-triggers-http-401-jwt-is-expired-for-some-of-them/25280 "2025-06-27T09:06:31Z")

</div>

Bitrise Build Issue Report template Description of the issue When we trigger a large amount of builds, some of them get triggered after hour because we only have 3 concurrent builds. When they get triggered, the key base…

---

## [Break up Save/Restore SPM dependencies into modules](https://discuss.bitrise.io/t/break-up-save-restore-spm-dependencies-into-modules/24587)

<div class="topic-metadata">

**Author:** [@rob.wyland](https://discuss.bitrise.io/u/rob.wyland)\
**Replies:** 0\
**Last updated:** [October 15, 2024, 7:27pm UTC](https://discuss.bitrise.io/t/break-up-save-restore-spm-dependencies-into-modules/24587 "2024-10-15T19:27:48Z")

</div>

I am wondering if there is a best practice to break up our project’s spm dependencies into more modular groups for caching? Right now we are using caching for 66 checked out SPM dependencies in Xcode (6.5GB) as part of …

---

## [Just released: New enhancements for Bitrise Build Cache](https://discuss.bitrise.io/t/just-released-new-enhancements-for-bitrise-build-cache/23729)

<div class="topic-metadata">

**Author:** [@matthew.vollmer](https://discuss.bitrise.io/u/matthew.vollmer)\
**Replies:** 0\
**Last updated:** [February 1, 2024, 12:49pm UTC](https://discuss.bitrise.io/t/just-released-new-enhancements-for-bitrise-build-cache/23729 "2024-02-01T12:49:07Z")

</div>

TLDR: What’s New? Cache anywhere: You can now access everything you need to integrate Bitrise Build Cache into your existing Bitrise workflows and those from other CI providers. Cut your build durations in half (or mor…

---

## [Bitrise Remote Build Cache fails due to big payload frame](https://discuss.bitrise.io/t/bitrise-remote-build-cache-fails-due-to-big-payload-frame/23320)

<div class="topic-metadata">

**Author:** [@sembozdemirflink](https://discuss.bitrise.io/u/sembozdemirflink)\
**Replies:** 1\
**Last updated:** [January 19, 2024, 7:04am UTC](https://discuss.bitrise.io/t/bitrise-remote-build-cache-fails-due-to-big-payload-frame/23320 "2024-01-19T07:04:09Z")

</div>

Hi all, We just enabled Bitrise Remote Build Cache on our workflows. However, some workflows are failing because of the following issue. Do you have any solution for this? \* What went wrong: Execution failed for task '…

---

## [Enable custom gradle path for \`bitrise-step-save-gradle-cache\`](https://discuss.bitrise.io/t/enable-custom-gradle-path-for-bitrise-step-save-gradle-cache/22150)

<div class="topic-metadata">

**Author:** [@olie.chan.nearform](https://discuss.bitrise.io/u/olie.chan.nearform)\
**Replies:** 0\
**Last updated:** [February 3, 2023, 2:50pm UTC](https://discuss.bitrise.io/t/enable-custom-gradle-path-for-bitrise-step-save-gradle-cache/22150 "2023-02-03T14:50:36Z")

</div>

bitrise-step-save-gradle-cache Would it be possible to enable customisation of the gradle paths for this step? We have a custom react-native project, with our android folder in a custom path

---

## [Caches: multiple deletion](https://discuss.bitrise.io/t/caches-multiple-deletion/21940)

<div class="topic-metadata">

**Author:** [@le.flow](https://discuss.bitrise.io/u/le.flow)\
**Replies:** 0\
**Last updated:** [December 16, 2022, 4:46pm UTC](https://discuss.bitrise.io/t/caches-multiple-deletion/21940 "2022-12-16T16:46:58Z")

</div>

Hi, Would it be possible to be able to select the caches we want to delete to allow deleting multiple cache entries at once? Like having a checkbox to select the caches we want to delete. Currently, deleting caches 1 …

---

## [Bitrise CLI not actually running unit tests on local machine](https://discuss.bitrise.io/t/bitrise-cli-not-actually-running-unit-tests-on-local-machine/21282)

<div class="topic-metadata">

**Author:** [@eric-cmb](https://discuss.bitrise.io/u/eric-cmb)\
**Replies:** 1\
**Last updated:** [October 24, 2022, 7:20pm UTC](https://discuss.bitrise.io/t/bitrise-cli-not-actually-running-unit-tests-on-local-machine/21282 "2022-10-24T19:20:40Z")

</div>

+------------------------------------------------------------------------------+ | bitrise summary | +---+-----------------------------------------------------…

---

## [React native new architecture speed up / caching](https://discuss.bitrise.io/t/react-native-new-architecture-speed-up-caching/21166)

<div class="topic-metadata">

**Author:** [@kornel.schmidt](https://discuss.bitrise.io/u/kornel.schmidt)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 5:22am UTC](https://discuss.bitrise.io/t/react-native-new-architecture-speed-up-caching/21166 "2022-09-29T05:22:54Z")

</div>

With the new architecture, react native brings along a major slowdown of builds. They do have a guide about using ccache, even with CI: Speeding up your Build phase · React Native What is a good way to implement that on…

---

## [How to Cache the Source Code directory](https://discuss.bitrise.io/t/how-to-cache-the-source-code-directory/1533)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 10\
**Last updated:** [June 3, 2022, 11:52am UTC](https://discuss.bitrise.io/t/how-to-cache-the-source-code-directory/1533 "2022-06-03T11:52:06Z")

</div>

Bitrise does not do automatic git/source code caching, unless you configure it for yourself. This is part of our Security policy too (that we don’t store your code and we never access it outside of the ephemeral build VM…

---

## [Node\_modules caching is somehow missing most of the dependencies](https://discuss.bitrise.io/t/node-modules-caching-is-somehow-missing-most-of-the-dependencies/19560)

<div class="topic-metadata">

**Author:** [@oguzhan](https://discuss.bitrise.io/u/oguzhan)\
**Replies:** 1\
**Last updated:** [March 9, 2022, 8:35am UTC](https://discuss.bitrise.io/t/node-modules-caching-is-somehow-missing-most-of-the-dependencies/19560 "2022-03-09T08:35:01Z")

</div>

Hi there, As mentioned in this topic, node\_module caching on Bitrise doesn’t work as expected. Yarn step doesn’t cache node\_modules I use the official Run yarn command workflow recipe step and set caching to true. Howe…

---

## [Caching with keys](https://discuss.bitrise.io/t/caching-with-keys/19055)

<div class="topic-metadata">

**Author:** [@denizbilgin](https://discuss.bitrise.io/u/denizbilgin)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 7:19pm UTC](https://discuss.bitrise.io/t/caching-with-keys/19055 "2022-01-13T19:19:08Z")

</div>

In many cases the current caching system is not useful. Let’s imagine a build where I have node modules. Imagine I have a master branch and whenever I have a PR to this master branch, a build is triggered. Let’s assume…

---

## [Automatically clear cache (Derived data iOS)](https://discuss.bitrise.io/t/automatically-clear-cache-derived-data-ios/18796)

<div class="topic-metadata">

**Author:** [@mathieu.fedrigo](https://discuss.bitrise.io/u/mathieu.fedrigo)\
**Replies:** 2\
**Last updated:** [December 27, 2021, 10:19am UTC](https://discuss.bitrise.io/t/automatically-clear-cache-derived-data-ios/18796 "2021-12-27T10:19:05Z")

</div>

Hi, I recently cached my DerivedData folder to speed up my iOS builds. My setup works and I’ve gained some time :ok\_hand: However, I don’t fully understand what is stored in DerivedData and I’m worried this folder coul…

---

## [Remove the aborted build history](https://discuss.bitrise.io/t/remove-the-aborted-build-history/11516)

<div class="topic-metadata">

**Author:** [@rafi2202](https://discuss.bitrise.io/u/rafi2202)\
**Replies:** 6\
**Last updated:** [December 16, 2021, 8:51pm UTC](https://discuss.bitrise.io/t/remove-the-aborted-build-history/11516 "2021-12-16T20:51:12Z")

</div>

can we remove the aborted build history? because in my opinion quite annoying and not needed

---

## [How to have a separate cache per workflow?](https://discuss.bitrise.io/t/how-to-have-a-separate-cache-per-workflow/3517)

<div class="topic-metadata">

**Author:** [@rraallvv](https://discuss.bitrise.io/u/rraallvv)\
**Replies:** 12\
**Last updated:** [December 14, 2021, 9:54am UTC](https://discuss.bitrise.io/t/how-to-have-a-separate-cache-per-workflow/3517 "2021-12-14T09:54:31Z")

</div>

What I want is to have two workflows each with a different cache. Using printenv on a macOS box I found $BITRISE\_CACHE\_DIR and $BITRISE\_CACHE\_API\_URL, also some scripts use $BITRISE\_CACHE\_INFO\_PATH but it’s not clear wh…

---

## [Use the Bitrise Cache system to cache Xcode derived data and use it in the next build](https://discuss.bitrise.io/t/use-the-bitrise-cache-system-to-cache-xcode-derived-data-and-use-it-in-the-next-build/1622)

<div class="topic-metadata">

**Author:** [@francesco.puntillo](https://discuss.bitrise.io/u/francesco.puntillo)\
**Replies:** 12\
**Last updated:** [December 6, 2021, 3:58pm UTC](https://discuss.bitrise.io/t/use-the-bitrise-cache-system-to-cache-xcode-derived-data-and-use-it-in-the-next-build/1622 "2021-12-06T15:58:58Z")

</div>

Hi, in order to speed up the build time, I would like to use the cache to store derived data. I managed to set everything up. 1) set a specific folder to use as derived data folder 2) build 3) push out derived data fol…

---

## [How can I reduce build time caching xcode-archive?](https://discuss.bitrise.io/t/how-can-i-reduce-build-time-caching-xcode-archive/16432)

<div class="topic-metadata">

**Author:** [@jonathan.souza](https://discuss.bitrise.io/u/jonathan.souza)\
**Replies:** 5\
**Last updated:** [April 27, 2021, 8:39am UTC](https://discuss.bitrise.io/t/how-can-i-reduce-build-time-caching-xcode-archive/16432 "2021-04-27T08:39:54Z")

</div>

I have a build that spend 40min only on xcode-archive, and 3 or less minutes on other steps, I would like to cache my xcode-archive but I tried some things and doesn’t work.

---

## [Making flutter builds faster](https://discuss.bitrise.io/t/making-flutter-builds-faster/3976)

<div class="topic-metadata">

**Author:** [@ch\_kent](https://discuss.bitrise.io/u/ch_kent)\
**Replies:** 19\
**Last updated:** [March 5, 2021, 6:41pm UTC](https://discuss.bitrise.io/t/making-flutter-builds-faster/3976 "2021-03-05T18:41:39Z")

</div>

Hi, I’ve set up a flutter build and all is working fine for both iOS and Android. I was hoping to make the build a bit faster by leveraging caching. However, my attempts so far have just slowed things down. That’s becau…

---

## [How to cache Gradle dependencies](https://discuss.bitrise.io/t/how-to-cache-gradle-dependencies/194)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 20\
**Last updated:** [March 1, 2021, 8:28am UTC](https://discuss.bitrise.io/t/how-to-cache-gradle-dependencies/194 "2021-03-01T08:28:42Z")

</div>

Setup Put the Cache:Pull step after the Git Clone step Put the Cache:Push step to the very end of the Workflow If you use v1.0 or newer of the Cache steps and the latest Gradle Runner step then that’s all you have to d…

---

## [Disable gradle cache](https://discuss.bitrise.io/t/disable-gradle-cache/15678)

<div class="topic-metadata">

**Author:** [@vanyadeasy](https://discuss.bitrise.io/u/vanyadeasy)\
**Replies:** 0\
**Last updated:** [February 8, 2021, 6:55am UTC](https://discuss.bitrise.io/t/disable-gradle-cache/15678 "2021-02-08T06:55:50Z")

</div>

Based on this blog post, Bitrise automatically cache gradle dependencies. Is there any way to disable this config?

---

## [How to cache Carthage dependencies](https://discuss.bitrise.io/t/how-to-cache-carthage-dependencies/197)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 14\
**Last updated:** [December 18, 2020, 4:04pm UTC](https://discuss.bitrise.io/t/how-to-cache-carthage-dependencies/197 "2020-12-18T16:04:59Z")

</div>

Setup (If not already added) Add the Cache:Pull step after the Git Clone step Add the Cache:Push step to the very end of the Workflow If you use v1.0 or newer of the Cache steps and the latest Carthage step then that’…

---

## [Cache-pull failure because stack has changed (different stack workflows)](https://discuss.bitrise.io/t/cache-pull-failure-because-stack-has-changed-different-stack-workflows/14404)

<div class="topic-metadata">

**Author:** [@gc1](https://discuss.bitrise.io/u/gc1)\
**Replies:** 3\
**Last updated:** [October 2, 2020, 12:13pm UTC](https://discuss.bitrise.io/t/cache-pull-failure-because-stack-has-changed-different-stack-workflows/14404 "2020-10-02T12:13:05Z")

</div>

Hi, I’m running two workflows, one to execute some tests using the faster linux-docker-android stack, and the other to build a React Native (with iOS variant) application on the osx-xcode-11.7.x stack. I noticed the cac…

---

## [Help setting up Caching for Xcode dependencies using SPM](https://discuss.bitrise.io/t/help-setting-up-caching-for-xcode-dependencies-using-spm/13503)

<div class="topic-metadata">

**Author:** [@txaiwieser](https://discuss.bitrise.io/u/txaiwieser)\
**Replies:** 2\
**Last updated:** [July 27, 2020, 6:06pm UTC](https://discuss.bitrise.io/t/help-setting-up-caching-for-xcode-dependencies-using-spm/13503 "2020-07-27T18:06:24Z")

</div>

Hi, we need help setting Cache build for our builds using Xcode and SPM (Swift Package Manager) We couldn’t find anyting that solve this expecifically, only using Carthage and Cocoapods! Thanks

---

## [Realm compile times](https://discuss.bitrise.io/t/realm-compile-times/13574)

<div class="topic-metadata">

**Author:** [@mleatherbmm](https://discuss.bitrise.io/u/mleatherbmm)\
**Replies:** 0\
**Last updated:** [July 7, 2020, 11:02pm UTC](https://discuss.bitrise.io/t/realm-compile-times/13574 "2020-07-07T23:02:46Z")

</div>

Hello, I’m having an issue with build cache and Swift Package Manager/Cocoapods. This specifically revolves around Realm’s compilation time, which is around 12min total. If we remove this our Xcode archive completes in …

---

## [Cache Pull failing, but previous Cache Push worked](https://discuss.bitrise.io/t/cache-pull-failing-but-previous-cache-push-worked/3149)

<div class="topic-metadata">

**Author:** [@james-rantmedia](https://discuss.bitrise.io/u/james-rantmedia)\
**Replies:** 15\
**Last updated:** [June 11, 2020, 4:09pm UTC](https://discuss.bitrise.io/t/cache-pull-failing-but-previous-cache-push-worked/3149 "2020-06-11T16:09:50Z")

</div>

I’ve been using CachePush/Pull to cache the dependencies for my iOS build that uses Carthage. This has been working for quite a while without any issues, but today, with no changes on my side the cache pull step has stop…

---

## [How to run Android UI tests on virtual devices](https://discuss.bitrise.io/t/how-to-run-android-ui-tests-on-virtual-devices/2496)

<div class="topic-metadata">

**Author:** [@tamaspapik](https://discuss.bitrise.io/u/tamaspapik)\
**Replies:** 52\
**Last updated:** [May 12, 2020, 11:30am UTC](https://discuss.bitrise.io/t/how-to-run-android-ui-tests-on-virtual-devices/2496 "2020-05-12T11:30:28Z")

</div>

The new feature, Virtual Device Testing for Android is here! It is currently in private-beta test phase, please ping us if you want to join! One test can be ran in one build at the moment, and robo test type has some li…

---

## [Get last cache usage date from API](https://discuss.bitrise.io/t/get-last-cache-usage-date-from-api/12561)

<div class="topic-metadata">

**Author:** [@Parafin](https://discuss.bitrise.io/u/Parafin)\
**Replies:** 0\
**Last updated:** [April 8, 2020, 6:09am UTC](https://discuss.bitrise.io/t/get-last-cache-usage-date-from-api/12561 "2020-04-08T06:09:09Z")

</div>

Hello, is there any option to get cache usage date from Bitrise API? I’ve looked through API docs but can’t find any… Thanks, Paul

---

## [Duplicated build names](https://discuss.bitrise.io/t/duplicated-build-names/12549)

<div class="topic-metadata">

**Author:** [@mariusz.ostapowicz](https://discuss.bitrise.io/u/mariusz.ostapowicz)\
**Replies:** 0\
**Last updated:** [April 7, 2020, 11:43am UTC](https://discuss.bitrise.io/t/duplicated-build-names/12549 "2020-04-07T11:43:43Z")

</div>

Hi, We have the issue with duplicated build names when we use the cache step. We build an Android app on Bitrise using this pattern in package naming: \[name of app\]\_\[build type\]\_\[version\]\_\[commit hash\].apk When our co…

[Next page](https://discuss.bitrise.io/tag/build-cache/11.md?match_all_tags=true&page=1&tags%5B%5D=build-cache)
