# Deploy to iTunes Connect - Invalid Provisioning Profile

**URL:** <https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399>\
**Category:** Tooling Issues\
**Created:** [December 18, 2018, 3:33am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399 "2018-12-18T03:33:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigescalade](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bigescalade](https://discuss.bitrise.io/u/bigescalade)\
**Post date:** [December 18, 2018, 3:33am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/1 "2018-12-18T03:33:08Z")

</div>

Hello, I have been trying to setup automated deployment for a React Native project. The Android side of things was simple enough, but i’m having a really hard time with iOS.

I have been receiving the following message “Invalid Provisioning Profile…”. As far as I can tell, I have the correct certs uploaded to bitrise, I have even revoked and replaced the distribution cert and reuploaded to little success.

I have done it both manually, and using the codesigndoc tool. I am able to build and distribute from my machine. Any help would be greatly appreciated! Thanks

---

<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:** [December 19, 2018, 8:37am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/2 "2018-12-19T08:37:30Z")

</div>

Hi @bigescalade,

Can you please send us a build URL about the issue?

---

<div class="post-metadata">

**Author:** ![bigescalade](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bigescalade](https://discuss.bitrise.io/u/bigescalade)\
**Post date:** [December 19, 2018, 9:16am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/3 "2018-12-19T09:16:21Z")

</div>

Hello @bitce thanks for the reply. Tried adding the build URL here but that didn’t work (I assume for security) so I will email the build URL along with a reference to this post.

---

<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:** [December 19, 2018, 9:22am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/4 "2018-12-19T09:22:57Z")

</div>

Of course! After looking at this the error also details `A Distribution Provisioning profile should be used when submitting apps to the App Store.`

In most likely event I believe the issue is that you are missing a Distribution profile.

---

<div class="post-metadata">

**Author:** ![bigescalade](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bigescalade](https://discuss.bitrise.io/u/bigescalade)\
**Post date:** [December 19, 2018, 10:35am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/5 "2018-12-19T10:35:47Z")

</div>

Just double checked, the provisioning profile has definitely been uploaded. I have tried uploading it using both manual methods and codesigndoc methods.

---

<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:** [December 19, 2018, 10:39am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/6 "2018-12-19T10:39:34Z")

</div>

Do you have a more up-to-date log perhaps in that case? It is apparent from the log that you have 4 profiles uploaded, 2 development, 1 ad-hoc, and 1 app-store, there aren’t any Distribution present

---

<div class="post-metadata">

**Author:** ![bigescalade](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bigescalade](https://discuss.bitrise.io/u/bigescalade)\
**Post date:** [December 19, 2018, 10:14pm UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/7 "2018-12-19T22:14:15Z")

</div>

Right, I have 4 provisioning profile files uploaded, and then 3 code signing identity files uploaded.

So its my understanding that the provisioning profile will be app-store and then the code signing identity is where the distribution certificate will be? That’s how I have it setup right now.

---

<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:** [December 20, 2018, 10:55am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/8 "2018-12-20T10:55:29Z")

</div>

Hi again!

Sorry for the confusion, looking at this, the reason for the error is clearly that you are using a `development` export type on the Xcode-Archive step, which conflicts with the `app-store` intention.

The build URL did work by the way! Discuss displays them as if they were general login links, but we can access them, don’t worry 🙂

---

<div class="post-metadata">

**Author:** ![bigescalade](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bigescalade](https://discuss.bitrise.io/u/bigescalade)\
**Post date:** [January 10, 2019, 4:09am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/9 "2019-01-10T04:09:13Z")

</div>

Happy new year! Sorry for belated reply, went on holidays and then had a backlog on return lol.

Thanks for your help! That does indeed seem to be the problem. I have done further builds which fail (but for a different reason, which is an easy fix).

Appreciate the support

---

<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 9, 2019, 4:09am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect-invalid-provisioning-profile/7399/10 "2019-02-09T04:09:20Z")

</div>

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