# Archive failed, error: exit status 65 Not detecting app store provisioning profile

**URL:** <https://discuss.bitrise.io/t/archive-failed-error-exit-status-65-not-detecting-app-store-provisioning-profile/6934>\
**Category:** Builds\
**Created:** [November 27, 2018, 8:20am UTC](https://discuss.bitrise.io/t/archive-failed-error-exit-status-65-not-detecting-app-store-provisioning-profile/6934 "2018-11-27T08:20:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saira.samdani](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@saira.samdani](https://discuss.bitrise.io/u/saira.samdani)\
**Post date:** [November 27, 2018, 8:20am UTC](https://discuss.bitrise.io/t/archive-failed-error-exit-status-65-not-detecting-app-store-provisioning-profile/6934/1 "2018-11-27T08:20:55Z")

</div>

# Bitrise Build Issue Report template

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

error: No profile for team ‘_ **’ matching ’ \*\*\* \*\*\*\*\* ’ found: Xcode couldn’t find any provisioning profiles matching '** _/\*\*\*\*\*\*\* \*\*\* \*\*\*\*\* \*\*\*\*\*\*\*’. Install the profile (by dragging and dropping it onto Xcode’s dock item) or select a different one in the General tab of the target editor. (in target ‘PhotosViewer’)

But profile is already selected in Xcode General and I can create an Archive from Xcode using this same profile. Then where does the problem occur.

## Environment:

When I try creating a production build

**Where did the issue happen?**

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)

iOS

**Which build Step causes the issue and which version of the step?**

I manually clicked Build button from Bitrise and this problem arose.

E.g.: Git Clone v3.6.0

## 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?_ : Right from beginning

### 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: 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/) ._

## Build log

Here is the link to Latest build. You can see going to Logs tab.

> **[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:** [November 27, 2018, 11:14am UTC](https://discuss.bitrise.io/t/archive-failed-error-exit-status-65-not-detecting-app-store-provisioning-profile/6934/2 "2018-11-27T11:14:18Z")

</div>

Hi @saira.samdani!

Based on the log it seems that you have only uploaded your certificates and you didn’t upload any provisioning profiles, which would result in this error.

---

<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:** [December 27, 2018, 11:14am UTC](https://discuss.bitrise.io/t/archive-failed-error-exit-status-65-not-detecting-app-store-provisioning-profile/6934/3 "2018-12-27T11:14:20Z")

</div>

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