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

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.


When I try creating a production build

Where did the issue happen?

If on which stack? If not on on what operating system? (Plus any other information you can share)


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


  • 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. : 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? 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 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 )? If no, can it be reproduced with Docker (using the same docker images / environment we use on Related guide: Redirecting… .

Build log

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

Please copy paste the build’s 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 ), with a link to the related Discuss issue.

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.

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