Xcode 6 App Store submission fails with "Your account already has a valid iOS distribution certificate"

84,068

Solution 1

Got it solved by editing the iOS Distribution Provision Profile in the Developer Member Center.

For some reason there were 2 certificates to choose from for the Distribution Provisioning Profile. I switched over to the other certificate and I could Validate and Submit my Archive build for beta testing.

So, you may have more than one certificate for signing your Provision profiles. Make sure you have the right one (by trying all of them) and hopefully that should work.

I tried many things like Exporting Developer profile from Xcode Accounts and importing it in the organizer, installing the provision profiles from the member center, adding them to my keychain. But none of those worked. It started working only after editing the appropriate Provisioning Profile manually.

You could also trying removing all your available Provisioning Profiles and let Xcode create new ones for you. This will work too.

Solution 2

I also had this issue, which turned out to be caused by an attempt to export for ad hoc deployment using a development provisioning profile instead of a distribution profile. It seems this is no longer supported in Xcode 6.1. Once I created an ad hoc profile and installed that the problem went away. A more useful error message would have saved me hours of work and would be greatly appreciated, Apple.

This thread was helpful:

xcode 6 beta 2 issue with exporting ipa "Your account already has a valid iOS distribution certificate"

Solution 3

Besides all the other answers, there's one more possibility after 2/15/2016: the old World Wide certificate expired and I guess everyone has already downloaded the new cert (or check this out). However, you'll be seeing this error if you haven't remove the expired one. You may need to choose View -> Show Expired Certificates to unhide expired certs. If the error is still there, try regenerate provisioning profile as advised by the others.

Solution 4

I was moving to new Mac when I faced this issue. On your older Mac:

  1. Go Preferences > Accounts > Select Account > Details.
  2. In the dropdown right click on iOS Distribution (or whatever is the name of your distribution certificate).
  3. Export...
  4. Set a password for the .p12 file.
  5. Move and install this .p12 in the new mac.
  6. Try Again.

Solution 5

Another possible cause for the problem (at least in my case) was that in my Keychain Access, I had two certificates for the team I was working with. One was expired, and the other one was the one I wanted to use. Deleting the expired certificate in Keychain Access solved the issue.

Share:
84,068
João Pereira
Author by

João Pereira

Updated on July 05, 2022

Comments

  • João Pereira
    João Pereira over 1 year

    I'm using the latest XCode (6.1) and I need to submit the app as soon as possible, but I can't seem to get around the "Your account already has a valid iOS distribution certificate" error.

    I have the client's provisioning profile and I have his distribution certificate (which is valid) and his private key (I've checked using Keychain, it's definitely there). The bundle ID is also correct. I've deleted my provisioning profiles and certificates and reinstalled the client's many times now.

    What could be causing this issue? I've seen a lot of topics here on SO with this problem, so I apologise beforehand for creating yet another clone, but I really don't know how to fix this.

    edit: I'm running a brand new install of Yosemite by the way

  • pir800
    pir800 about 8 years
    Also, note that you need to go down the line on the "Keychains" section on the upper left. After hitting my head against the wall a few times I found an additional expired cert underneath the "System" Keychain.
  • bluenowhere
    bluenowhere about 8 years
    I have two developer accounts and I have to reset the profile every time I submit app to one of them, any suggestion?
  • kometen
    kometen over 7 years
    Thank you, this was exactly what I needed.
  • Warpzit
    Warpzit over 7 years
    Simply pressing the reset button did it for me.
  • mgyky
    mgyky almost 7 years
    This is the solution for 2017!
  • Ionut
    Ionut over 6 years
    Revoking certificates won´t affect your Apple Store apps, but they say: Revoking this certificate will invalidate it and any related services or provisioning profiles that use this certificate may be affected. So I don't recommend this solution.