# I encountered an error of "A Distribution Provisioning profile should be used when submitting apps to the App Store."

**URL:** <https://discuss.bitrise.io/t/i-encountered-an-error-of-a-distribution-provisioning-profile-should-be-used-when-submitting-apps-to-the-app-store/18690>\
**Category:** Builds\
**Created:** [November 21, 2021, 11:54am UTC](https://discuss.bitrise.io/t/i-encountered-an-error-of-a-distribution-provisioning-profile-should-be-used-when-submitting-apps-to-the-app-store/18690 "2021-11-21T11:54:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![islandryu](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@islandryu](https://discuss.bitrise.io/u/islandryu)\
**Post date:** [November 21, 2021, 11:54am UTC](https://discuss.bitrise.io/t/i-encountered-an-error-of-a-distribution-provisioning-profile-should-be-used-when-submitting-apps-to-the-app-store/18690/1 "2021-11-21T11:54:29Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

I encountered an error of “A Distribution Provisioning profile should be used when submitting apps to the App Store.”  
Collecting provisioning profiles and CODE SIGNING CERTIFICATES in codesigndoc.  
The previous CODE SIGNING CERTIFICATES had expired, so I created new ones and uploaded these in codesigndoc.  
It was working fine with code signing before the update.

I check

- Successful upload from xcode on my pc.
- Workflow Editor → Codesign should contain provisioning file of export type: app-store

## Environment:

**Which build Step causes the issue and which version of the step?**  
“Deploy to iTunes Connect - Application Loader” step

## 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.

---

<div class="post-metadata">

**Author:** ![thi.nguyen](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@thi.nguyen](https://discuss.bitrise.io/u/thi.nguyen)\
**Post date:** [November 24, 2021, 7:42pm UTC](https://discuss.bitrise.io/t/i-encountered-an-error-of-a-distribution-provisioning-profile-should-be-used-when-submitting-apps-to-the-app-store/18690/2 "2021-11-24T19:42:55Z")

</div>

Hello!

Under your Xcode Archive step, can you set your export method type to another variable. I believe the default development is causing your build to fail.

Thi

---

<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 24, 2021, 7:43pm UTC](https://discuss.bitrise.io/t/i-encountered-an-error-of-a-distribution-provisioning-profile-should-be-used-when-submitting-apps-to-the-app-store/18690/3 "2021-12-24T19:43:50Z")

</div>

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