# \[IOS\] XCode-Archive step with Cache-Push/Pull

**URL:** <https://discuss.bitrise.io/t/ios-xcode-archive-step-with-cache-push-pull/15634>\
**Category:** Builds\
**Created:** [February 4, 2021, 1:22am UTC](https://discuss.bitrise.io/t/ios-xcode-archive-step-with-cache-push-pull/15634 "2021-02-04T01:22:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bazumax](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bazumax](https://discuss.bitrise.io/u/bazumax)\
**Post date:** [February 4, 2021, 1:22am UTC](https://discuss.bitrise.io/t/ios-xcode-archive-step-with-cache-push-pull/15634/1 "2021-02-04T01:22:20Z")

</div>

## Description of the issue

My incremental XCode-Archive step do not cache build, and every build take 17+ min, how to save this BIG build time?

## Environment:

MacOS

If on [Bitrise.io](http://Bitrise.io): which stack? If not on [Bitrise.io](http://Bitrise.io): on what operating system? (Plus any other information you can share)

Latest version step

---

<div class="post-metadata">

**Author:** ![asimon-rosaly](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@asimon-rosaly](https://discuss.bitrise.io/u/asimon-rosaly)\
**Post date:** [February 4, 2021, 5:15pm UTC](https://discuss.bitrise.io/t/ios-xcode-archive-step-with-cache-push-pull/15634/2 "2021-02-04T17:15:54Z")

</div>

same here, 20 min builds for this step , for a “hello world” expo project in react native ,

I tried to put in my cache:

```auto
~/Library/Developer/Xcode/DerivedData
./Pods
node_modules

```

but without any change

---

<div class="post-metadata">

**Author:** ![tiborarthofer](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tiborarthofer](https://discuss.bitrise.io/u/tiborarthofer)\
**Post date:** [February 24, 2021, 3:58pm UTC](https://discuss.bitrise.io/t/ios-xcode-archive-step-with-cache-push-pull/15634/3 "2021-02-24T15:58:51Z")

</div>

Hi @bazumax

Caching can help with a lot of builds, but the efficiency of the Build Cache depends on the size of the files you want to cache, as well as on the number of files you want to cache.

Alternatively, you can also turn off the “Clean build” setting in the workflow editor without causing issues. The first one will still have to do a clean build, because there’s no build cache at the time it runs but subsequent Xcode steps can use the build cache of the previous Xcode step(s), reducing the compilation time.

You can also submit your build using our [support form](https://www.bitrise.io/bitrise-support), we would be happy to take a look!

---

<div class="post-metadata">

**Author:** ![bazumax](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bazumax](https://discuss.bitrise.io/u/bazumax)\
**Post date:** [February 24, 2021, 10:43pm UTC](https://discuss.bitrise.io/t/ios-xcode-archive-step-with-cache-push-pull/15634/4 "2021-02-24T22:43:48Z")

</div>

It doesn’t help with archiving files, only for build, tested with capacitor

---

<div class="post-metadata">

**Author:** ![tiborarthofer](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tiborarthofer](https://discuss.bitrise.io/u/tiborarthofer)\
**Post date:** [February 26, 2021, 9:07am UTC](https://discuss.bitrise.io/t/ios-xcode-archive-step-with-cache-push-pull/15634/5 "2021-02-26T09:07:07Z")

</div>

Can you send me one of your builds to take a look?

Please make sure [support access](https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/) is enabled.

Thank you!

---

<div class="post-metadata">

**Author:** ![bazumax](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bazumax](https://discuss.bitrise.io/u/bazumax)\
**Post date:** [February 26, 2021, 8:23pm UTC](https://discuss.bitrise.io/t/ios-xcode-archive-step-with-cache-push-pull/15634/6 "2021-02-26T20:23:45Z")

</div>

Yes, this is one of latest builds  
[Build](https://app.bitrise.io/build/1fb675ced9f27113)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [March 28, 2021, 8:23pm UTC](https://discuss.bitrise.io/t/ios-xcode-archive-step-with-cache-push-pull/15634/7 "2021-03-28T20:23:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
