Ionic.io iOS Distribution Profile Packaging Error: Code Sign error: No code signing identities found: No valid signing identities

My goal is to create an .ipa File that can be uploaded with the Apple Application Loader to iTunes Connect for usage in Apple Testflight.

However on ionic package build ios --profile project_dist I get the following error message:

Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) were found

These are the steps I take to generate the credentials:

  1. In https://developer.apple.com/account/ios/certificate/distribution I create a distribution certificate (App Store and Ad Hoc - Sign your iOS app for submission to the App Store or for Ad Hoc distribution.)
  2. In https://developer.apple.com/account/ios/identifier/bundle I create an app id
  3. In https://developer.apple.com/account/ios/profile/production I create the provisioning profile of type App Store - Create a distribution provisioning profile to submit your app to the App Store selecting the certificate and the app id from 1. and 2.
  4. I execute openssl x509 -inform DER -outform PEM -in ios_distribution.cer -out ios_distribution.cer.pem on the certificate from 1.
  5. I execute openssl pkcs12 -export -inkey project.key -in ios_distribution.cer.pem -out project-dist-cert.p12 with project.key being the key that I used to sign the CSR uploaded during 1.
  6. I create a production Security Group in ionic.io and upload the .p12 and the .mobileprovision files along with the export password.

I think I followed the instructions to the point here.

Please let me know, thank you!

2 Likes

Hi @mariocolombo

First of all, does your config.xml id (id=“com.ionicframework.project812888”) match the id in your app identifiers?
Secondly, are you able to save the security profile on ionic.io ?

Thanks
Julian

Hi @dmastag,

Many thanks for your help.

  1. This is the app id, it’s the only app identifier:

the config.xml widget id is:

<widget id="com.ionicframework.adeccoppp812888" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

This looks completely identical to me.

  1. Yes, I can upload the provisioning profile into ionic.io, it is being accepted without any issues. I downloaded it from here:

This one worked: https://ionicframework.com/docs/guide/publishing.html

It also creates a new certificate and a new profile in the Apple dev account.

it would still be nice to be able to do it outside of XCode.

1 Like

Thank you for the hint Mario, I am going to try it.

I am experiencing the same issue, having followed the same steps you described above, except I used Keychain instead of OpenSSL

However I have a hard time accepting that ionic package build iOS --profile prod --release does not work… Is there anybody who succeeded in building distribution IPA?

/noro

2 Likes

I can confirm that the distribution XCode archive / signing works, whereas ionic package does not. Is there anyone that made this work? @max please?

Hi,

Same issue for me! Ionic package seems no to work for distribution build (for dev everything is OK).
Any feedback from ionic team?

Thanks,

There is a GitHub Issue for this as well, but no response from the Ionic team. Updates?

I’m in trouble, in my case. return error : Code Sign error: No matching provisioning profiles found: No provisioning profiles matching an applicable signing identity were found.

The certificate is attached in ionic cloud security profile, and works in xcode.

Suggestions?

HI There, nobody have solved this?
for me the problem is
Using Windows, Ios in virtual machine, generate provisioning from keychain

use this command
ionic package build PLATFORM_TAG --profile PROFILE_TAG --release

And in ionic interface in build area I have and error:

=== BUILD TARGET Configuratore Linea Vita OF PROJECT Configuratore Linea Vita WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) were found.

** BUILD FAILED **

any idea?
thanks Fabio

I try to change my provisioning from development to production provisioning and try to compile in release

but same error

=== BUILD TARGET Configuratore Linea Vita OF PROJECT Configuratore Linea Vita WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) were found.

** BUILD FAILED **

1 Like

No news?
thanksFabio