# Xcode Archive significantly slower on Xcode 9.0.x stack (compared to Xcode 8.3.x stack)

**URL:** <https://discuss.bitrise.io/t/xcode-archive-significantly-slower-on-xcode-9-0-x-stack-compared-to-xcode-8-3-x-stack/2708>\
**Category:** Builds\
**Tags:** ios, xcode\
**Created:** [September 14, 2017, 8:23am UTC](https://discuss.bitrise.io/t/xcode-archive-significantly-slower-on-xcode-9-0-x-stack-compared-to-xcode-8-3-x-stack/2708 "2017-09-14T08:23:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [September 14, 2017, 8:23am UTC](https://discuss.bitrise.io/t/xcode-archive-significantly-slower-on-xcode-9-0-x-stack-compared-to-xcode-8-3-x-stack/2708/1 "2017-09-14T08:23:08Z")

</div>

Same build config:

- on Xcode 8.3.x stack Xcode Archive took 39 secs
- on Xcode 9.0.x stack Xcode Archive took 188 secs

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [September 14, 2017, 8:40am UTC](https://discuss.bitrise.io/t/xcode-archive-significantly-slower-on-xcode-9-0-x-stack-compared-to-xcode-8-3-x-stack/2708/2 "2017-09-14T08:40:33Z")

</div>

Solution: turn off the **Compile Bitcode** option in **Xcode Archive** step

```auto
    - xcode-archive:
        inputs:
        - upload_bitcode: 'no'
        - compile_bitcode: 'no'

```

With this the Xcode Archive step took 48 seconds on Xcode 9.0.x in the quick test build.

Explanation: **Xcode 9 changed the default configs regarding Bitcode** in archive for Development / Ad-Hoc archives.

Xcode 8.3 did not use the Bitcode option during export _if the export type is `development` / `ad-hoc`_, but Xcode 9 does, so if you want to make the archive faster and you don’t need Bitcode you should disable that in the Xcode Archive step.

_This only applies for non App Store archives, for app-store type archives Xcode 8.3 did enable Bitcode as well by default, so there should be no (significant) difference on the two stacks._
