# XCode 11 Sign In - Archive Failed code 65

**URL:** <https://discuss.bitrise.io/t/xcode-11-sign-in-archive-failed-code-65/12333>\
**Category:** Builds\
**Tags:** fastlane, ios\
**Created:** [March 20, 2020, 3:38pm UTC](https://discuss.bitrise.io/t/xcode-11-sign-in-archive-failed-code-65/12333 "2020-03-20T15:38:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vitalii.Kotivskyi](https://avatars.discourse-cdn.com/v4/letter/v/53a042/32.png) [@Vitalii.Kotivskyi](https://discuss.bitrise.io/u/Vitalii.Kotivskyi)\
**Post date:** [March 20, 2020, 3:38pm UTC](https://discuss.bitrise.io/t/xcode-11-sign-in-archive-failed-code-65/12333/1 "2020-03-20T15:38:30Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

After migration project to XCode 11.3 our Bitrise CI job is not able to build application archive anymore.  
Also there are no useful error messages in Bitrise logs nor gym logs (even with --verbose and --capture\_output flags)

Another important detail:

1. We have updated all certificates and provision profiles (required by XCode 11) and uploaded them to Bitrise
2. We are able to create valid .ipa locally via same fastlane script using exactly same certificate and provision profile

Job always fails on with same result:  
Touching MyBaseApp.app  
▸ Signing /Users/vagrant/Library/Developer/Xcode/DerivedData/Kingfisher-bmorbbkokrvxzkbofjrwhrykkpjh/Build/Intermediates.noindex/ArchiveIntermediates/MyBaseApp-TEST/InstallationBuildProductsLocation/Applications/MyBaseApp.app  
\*\* ARCHIVE FAILED \*\*  
ERROR [2020-03-20 14:25:33.36]: Exit status: 65

## Environment:

Xcode 11.3.x, on macOS 10.14.6 (Mojave)  
fastlane\_version “1.101.0” and “2.143.0” (tried both)

**Where did the issue happen?**  
After migrating from XCode 10.3 to XCode 11.3

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)  
Xcode 11.3.x, on macOS 10.14.6 (Mojave)

**Which build Step causes the issue and which version of the step?**  
Step: Create Archive:  
command:  
gym(export\_method: “enterprise”, export\_options: { compileBitcode: false })

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : NO
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ :NO
- _Does the issue happen sporadically, or every time?_ : Every Time
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : After Xcode 10.3 → 11.3 project migration

### Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392)? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what [bitrise.io](http://bitrise.io) will get when it does a git clone in the clean environment! If possible please note which sections you tried._

### Local reproduction: Linux / Android (docker based) stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [Bitrise CLI](https://www.bitrise.io/cli) )? If no, can it be reproduced with Docker (using the same docker images / environment we use on [bitrise.io](http://bitrise.io))? Related guide: [Running your build locally in Docker](http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/) ._

We didn’t try bitrise CLI, but fastlane job succeeded on local PC even with clean repository Clone. Also locally created .ipa file was successfully installed on iPhone devices

## Build log

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

_Please copy paste the build’s [bitrise.io](http://bitrise.io) URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - [Contact us](https://www.bitrise.io/contact) ), with a link to the related Discuss issue._

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [April 7, 2020, 7:05am UTC](https://discuss.bitrise.io/t/xcode-11-sign-in-archive-failed-code-65/12333/2 "2020-04-07T07:05:37Z")

</div>

Hi @Vitalii.Kotivskyi, sorry to hear about the issue.

Unfortunately, the errors here are indeed not very helpful. Have you tried or considered using Bitrise solutions instead of fastlane? In case you do switch to our tools and those breaks, we could investigate that. more in-depth.

Unfortunately here we can mostly recommend to remote access into the machine and try running your lane manually, in hopes of finding out more information about the error. Please try that initially and let us know how that goes!

---

<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:** [May 7, 2020, 7:19am UTC](https://discuss.bitrise.io/t/xcode-11-sign-in-archive-failed-code-65/12333/3 "2020-05-07T07:19:10Z")

</div>

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