Search code examples
ionic2testflightionic.io

Ionic.io 2, Apple Application Loader, Missing Code-Signing Certificate


I'm using Ionic.io to build an Ionic 2 project and generate an .ipa (for upload to Apple's TestFlight).

When I try to upload my development .ipa file using Apple Application Uploader I get the following error:

Invalid Provisioning Profile. The provisioning profile included in the bundle xxx.xxx.xxxx [Payload/xxx.app] 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."

The .ipa file is being generated by ionic.io

Ionic.io security profiles and certificates have been created as per instructions here (have tried on both Windows and Mac): http://docs.ionic.io/services/profiles/

I've reviewed the document many times and have created keys multiple times (in case something was missed).

I'm building development with the following command. My understanding is we don't want to use "--release" because that's only for the production profile. In fact, the ionic.io package fails to build if this parameter is specified for dev.

ionic package build ios --profile dev

Push notifications are not enabled.

I posted this to the Ionic2 forum too but there has been no resolution.

Has anyone got this to work or have any ideas?


Solution

  • You need a mac to sign your app with a Provisioning Profile

    First Build your app

    ionic build ios
    

    Then Open your app with Xcode. you can find the the project in your xcode project

    ionicProject > platforms > iOS > ionicProject.xcodeproj
    

    You need to make sure your Xcode account is setup

    Click on Xcode > Preferences... > click on the plus sign
    

    once your account is linked and you have downloed all your Provisioning profiles you can click on your project on the left

    and under General you can add your Provisioning Profile below signing