No signing certificate "iOS Distribution" found

144,173

Solution 1

You need to have the private key of the signing certificate in the keychain along with the public key. Have you created the certificate using the same Mac (keychain) ?

Solution #1:

  • Revoke the signing certificate (reset) from apple developer portal
  • Create the signing certificate again on the same mac (keychain). Then you will have the private key for the signing certificate!

Solution #2:

  • Export the signing identities from the origin xCode
  • Import the signing on your xCode

Apple documentation: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

Solution 2

I had the same issue and I have gone through all these solutions given, but none of them worked for me. But then I realised my stupid mistake. I forgot to change Code signing identity to iOS Distribution from iOS Developer, under build settings tab. Please make sure you have selected 'iOS Distribution' there.

Solution 3

enter image description here

Solution Steps:

  1. Unchecked "Automatically manage signing".

  2. Select "Provisioning profile" in "Signing (Release)" section.

  3. No signing certificate error will be show.

  4. Then below the error has a "Manage Certificates" button. click the button.

enter image description here

  1. This window will come. Click the + sign and click "iOS Distribution". xcode will create the private key for your distribution certificate and error will be gone.

Solution 4

Tried the above solutions with no luck ... restarting my mac solved the issue...

Solution 5

Goto Xcode -> Prefrences and import the profile enter image description here

Share:
144,173
user3034944
Author by

user3034944

Updated on July 05, 2022

Comments

  • user3034944
    user3034944 almost 2 years

    I am trying to sign an app with my client's certificates. I have received the following file from the client

    enter image description here

    I tried installing the ios_distribution certificate and the key (.p12). Also I have installed the provisioning profile. Now when I try to sign the app with the provisioning profile, it does show up in the drop down but I get the following error:-

    No "iOS Distribution" signing certificate matching team ID "7S977Lxxx" with a private key was found
    

    enter image description here

    How can I solve this issue? Any help is appreciated.

  • user3034944
    user3034944 almost 7 years
    Thanks for the answer. But when I try the Import Developer Accounts options, it shows the certificates in my folder, but they are all grayed out
  • jaycee
    jaycee over 5 years
    @green you can revoke the signing certificates on the apple developer portal However I am not sure I understood what should I export and where
  • MrColes
    MrColes over 5 years
    This helped me. In my case, I just had to log in again on the Xcode > Preferences > Accounts tab and then click the button to refresh my cert.
  • Greg Hilston
    Greg Hilston about 5 years
    @babibo Not exactly. fastlane and match are open source projects. Its a defined command and not custom. It could help someone who uses fastlane and match and did not understand that they needed to run that command... No need for the negative-ness mate
  • CGuess
    CGuess about 4 years
    This is the answer if you're dealing with legacy apps. Also choose "apple" instead of "ios" because that's the new cross-platform style.
  • Joe Elia
    Joe Elia almost 4 years
    This should be the best answer
  • Boon
    Boon almost 4 years
    Why is unchecking the Automatically manage signing necessary? Won't Xcode manage it for you automatically?
  • Mohammed Atif
    Mohammed Atif over 3 years
    @CGuess 's suggestion helped with conjunction to to Hasan's answer. Setting the identity to "Apple Distribution" from "iOS Distribution" worked
  • Shyam
    Shyam over 3 years
    After restarting xcode didnt work, i restarted my mac, and it worked. Thanks. It wouldnt have occured to me.
  • Jaggler3
    Jaggler3 over 3 years
    I had to restart XCode to fix associating my Provisioning Profile with my Signing Certificate
  • becker
    becker about 3 years
    I'm 11.3 and still having the issue I had one app that worked a couple of days but now another app doesn't work I tried everything suggested here and so far nothing...I even deleted all certificates from keychain and redid still no cigar... I always have this issue when changing to a different machine
  • Andy Weinstein
    Andy Weinstein over 2 years
    Apple hardware, Apple software, Apple remote service. Sigh.
  • Ravi
    Ravi over 2 years
    Lol, Thanks man. Even i tried other methods and this one worked.
  • SinisterMJ
    SinisterMJ about 2 years
    I think Xcode at some point changes this for you, maybe a bug, because I would NEVER change this yet ran into the same issue. I feel like creating a million sock puppet accounts just to upvote this.