# Xcode Archive failed, error: exit status 65

**URL:** <https://discuss.bitrise.io/t/xcode-archive-failed-error-exit-status-65/7507>\
**Category:** Builds\
**Created:** [January 2, 2019, 8:44pm UTC](https://discuss.bitrise.io/t/xcode-archive-failed-error-exit-status-65/7507 "2019-01-02T20:44:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nieyoub23](https://avatars.discourse-cdn.com/v4/letter/n/eb9ed0/32.png) [@nieyoub23](https://discuss.bitrise.io/u/nieyoub23)\
**Post date:** [January 2, 2019, 8:44pm UTC](https://discuss.bitrise.io/t/xcode-archive-failed-error-exit-status-65/7507/1 "2019-01-02T20:44:33Z")

</div>

## Build fails while creating archive by giving error exit status 65

It seems to be an issue with the wildcard provisioning profile. Builds locally just fine and with a clean clone.  
We are not using automatic signing in the Workflow.

Last lines of the Xcode’s build log:  
Check dependencies  
Code Signing Error: No profiles for ‘\*\*\*’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching \*\*\*'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.

Code Signing Error: Code signing is required for product type ‘App Extension’ in SDK ‘iOS 11.4’

\*\* ARCHIVE FAILED \*\*

The following build commands failed:

Check dependencies  
(1 failure)

##Environment:

**Where did the issue happen?**

> **[Continuous Integration and Delivery (CI/CD) Platform | Bitrise](https://bitrise.io)**
>
> Streamline your mobile development process with Bitrise. The Mobile DevOps platform that helps you build, test, and deploy your apps quickly and reliably.

Stack: Xcode 9.4.x, on macOS 10.13 (High Sierra)

**Which build Step causes the issue and which version of the step?**  
Xcode-archive@2.4.6

##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?  
Our last successful build was November 20th. We rebuilt that commit but it still fails.

### 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 build works and so does building the clean clone.

### Local reproduction: iOS

_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/) ._  
Failed at a different step in the CLI: Build to Xcode Project

## Build log

_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._  
URL sent via email

---

<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:** [January 3, 2019, 8:31am UTC](https://discuss.bitrise.io/t/xcode-archive-failed-error-exit-status-65/7507/2 "2019-01-03T08:31:25Z")

</div>

Hi @nieyoub23!

Can you please include a build URL so we can take a look at the issue?

---

<div class="post-metadata">

**Author:** ![nieyoub23](https://avatars.discourse-cdn.com/v4/letter/n/eb9ed0/32.png) [@nieyoub23](https://discuss.bitrise.io/u/nieyoub23)\
**Post date:** [January 4, 2019, 5:09pm UTC](https://discuss.bitrise.io/t/xcode-archive-failed-error-exit-status-65/7507/3 "2019-01-04T17:09:43Z")

</div>

Hi @bitce. I sent a URL via email. Sandor replied that the archive is looking for the wrong bundle ID for OneSignal, but we have a wildcard provisioning profile for that and one for our app.

---

<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:** [January 8, 2019, 9:18am UTC](https://discuss.bitrise.io/t/xcode-archive-failed-error-exit-status-65/7507/4 "2019-01-08T09:18:31Z")

</div>

Oh I see now, thanks, let’s continue this discussion there in that case 🙂

---

<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:** [February 7, 2019, 9:18am UTC](https://discuss.bitrise.io/t/xcode-archive-failed-error-exit-status-65/7507/5 "2019-02-07T09:18:34Z")

</div>

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