# Building error - Ionic iOS - code signing - no profile matching

**URL:** <https://discuss.bitrise.io/t/building-error-ionic-ios-code-signing-no-profile-matching/823>\
**Category:** Builds\
**Tags:** ionic, cordova, code-signing\
**Created:** [February 16, 2017, 3:58pm UTC](https://discuss.bitrise.io/t/building-error-ionic-ios-code-signing-no-profile-matching/823 "2017-02-16T15:58:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asmihaylov](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@asmihaylov](https://discuss.bitrise.io/u/asmihaylov)\
**Post date:** [February 16, 2017, 3:58pm UTC](https://discuss.bitrise.io/t/building-error-ionic-ios-code-signing-no-profile-matching/823/1 "2017-02-16T15:58:18Z")

</div>

Hello. I am trying to build **cordova / ionic / ios** project  
But my builds are always failed. I tried different profiles.  
I used "bash -l -c “$(curl -sfL [https://raw.githubusercontent.com/bitrise-tools/codesigndoc/master/\_scripts/install\_wrap.sh](https://raw.githubusercontent.com/bitrise-tools/codesigndoc/master/_scripts/install_wrap.sh))” to get required Provisioning Profiles.  
If I build and archive through Xcode - its successfully created ipa.  
Sorry for bad English.

Example of error:  
“No profile matching ‘_my\_identifier_’ found: Xcode couldn’t find a profile matching ‘_my\_identifier_’. 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.”

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [February 16, 2017, 6:54pm UTC](https://discuss.bitrise.io/t/building-error-ionic-ios-code-signing-no-profile-matching/823/2 "2017-02-16T18:54:23Z")

</div>

Hi @asmihaylov,

Can you check this guide, especially the iOS code signing notes, and let us know if that helps?

> [@How to build Ionic 2 apps](http://discuss.bitrise.io/t/how-to-build-ionic-2-apps/221):
>
> THIS IS AN OUTDATED TUTORIAL, [bitrise.io](http://bitrise.io) can now scan & auto configure a base workflow for Ionic apps automatically. For an updated tutorial please see: Setup Use this bitrise.yml for your ionic app’s build config: [https://github.com/bitrise-samples/ionic-2/blob/master/bitrise.yml](https://github.com/bitrise-samples/ionic-2/blob/master/bitrise.yml) The variables you have to set are at the top, in the app:envs: section, set those to the right ones for your project On [bitrise.io](https://www.bitrise.io) you should run the ci-ios or ci-android workflows as those are the ones which c…

---

<div class="post-metadata">

**Author:** ![asmihaylov](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@asmihaylov](https://discuss.bitrise.io/u/asmihaylov)\
**Post date:** [February 17, 2017, 5:56pm UTC](https://discuss.bitrise.io/t/building-error-ionic-ios-code-signing-no-profile-matching/823/3 "2017-02-17T17:56:55Z")

</div>

@viktorbenei thanks, i have some progress…  
when archived build submitted to itunes connect i have some error:

9:27:18]: This might take a few minutes. Please don’t interrupt the script.  
[09:29:46]: [Transporter Error Output]: ERROR ITMS-90161: “Invalid Provisioning Profile. The provisioning profile included in the bundle MY\_BUNDLE\_ID [Payload/bundle\_name] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal.”

trying to do something with profiles…

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [February 17, 2017, 6:00pm UTC](https://discuss.bitrise.io/t/building-error-ionic-ios-code-signing-no-profile-matching/823/4 "2017-02-17T18:00:18Z")

</div>

> [@asmihaylov](#):
>
> Invalid Provisioning Profile.

> [@asmihaylov](#):
>
> A Distribution Provisioning profile should be used when submitting apps to the App Store.

This combination means that **you signed the app with a non App Store code signing.** Make sure that you sign the app with App Store code signing, otherwise you can’t upload that app (IPA) to the App Store (nor to iTunes Connect TestFlight).

Related #How To guide:

> [@How to deploy to iTunes Connect TestFlight?](http://discuss.bitrise.io/t/how-to-deploy-to-itunes-connect-testflight/780):
>
> To auto deploy to iTunes Connect TestFlight: Add the Deploy to iTunes Connect / TestFlight (with Deliver) or the Deploy to iTunes Connect / TestFlight (with Shenzhen) step to your workflow, after the Xcode Archive or Xamarin Archive step (once the signed IPA is available, so if you use a Sign or Re-sign step to sign the IPA you should add the deploy step after that), and specify your iTunes Connect login credentials for the Deploy to iTunes Connect / TestFlight … step (preferably through Secre…

---

<div class="post-metadata">

**Author:** ![asmihaylov](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@asmihaylov](https://discuss.bitrise.io/u/asmihaylov)\
**Post date:** [February 18, 2017, 10:53am UTC](https://discuss.bitrise.io/t/building-error-ionic-ios-code-signing-no-profile-matching/823/5 "2017-02-18T10:53:02Z")

</div>

i change Xcode Archive for iOS settings:  
Force code signing with Identity —\> iPhone Distribution  
and now its ok 🙂

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [February 18, 2017, 10:59am UTC](https://discuss.bitrise.io/t/building-error-ionic-ios-code-signing-no-profile-matching/823/6 "2017-02-18T10:59:26Z")

</div>

Awesome, thanks for reporting and Happy Building! 😉
