Apple developer you're certificate has been revoked - ios

Ok so I have found these three answers: This one Revoked Certificate by Apple this one Your iOS Development certificate has been revoked? and this one Certificate has either expired or has been revoked and I get the same problem (A email from apple) every time that I use Xcode on one of the macOS devices that I have and then switch over and use Xcode on one of the other macOS device or vice-versa. and I think I know what's going on according to the answer at Your iOS Development certificate has been revoked? but is there any way that I can stop this from happening every time that I switch and use Xcode on the other device without needing to go through the process explained here? Certificate has either expired or has been revoked

If you are changing your mac, you have to create the .p12 file from certificate and install that .p12 onto new mac. Then there will be no problem regarding that certificate.
If you are familiar with how to create .p12 file from certificate.
Please check this link for certificate :-
https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

you should create your own developpement certificate in your account and add all test devices you use.
but if you change your mac you should move certificate to the other mac or just create a new certificate for this mac.

Related

why every time i open xcode project it shows to revoke code signing certificate?

every time when i open xcode project for ios mobile app it show following message:
"Your account already has a signing certificate for this machine but it is not present in your keychain. To create a new one, you must first revoke the existing certificate."
and Every time create new certificate. it happnes after Developer account member ship is renewed.
please give me any solutions.
This is saying that you have a signing certificate already but you have to put that certificate in your keychain. So if you have that certificate stored anywhere then please put that certificate in your laptop keychain. Otherwise if you dont know where is your certificate stored then you have only one option. you have to revoke(delete) the certificate from appledeveloper.com and create a new one then store it in your device keychain.
If the above answer didnt help you, I think you might miss some Apple Intermediate Certificates in your keychain...
Go to the Apple PKI, install the missing ones in the Apple Intermediate Certificates section.
Let me know if it helped
I got the same issue on Xcode 14. I solved it without revoking. I did the following:
Xcode->Preferences->Accounts tab
Manage certificates button.
Click the "+" and add a cert. (I selected apple dev cert)
Restart Xcode.
Hope that works!

You already have a current iOS Development certificate or a pending certificate request

I installed new OSX High Siera,
issue: All installed certificates deleted.
so i created New distribution certificate with my local machine signingCertificate, and downloaded and installed into machine.
When i run project or it giving error. i tried all steps found in stackOverflow, but could not resolve.
If you don't have an enterprise developer account then you only allow creating 3 prod certificates. If none of your .p12 is in your system then you may ask the owner for .p12 or generate new certificate by revoking any from three.
At a time only 3 release/production certificate for a developer account (non-enterprise).
Fetch all provision profiles through Xcode -> Preferences -> Accounts -> Download Manual Profiles
I suggest to use Manual signing instead of Automatic.
Choose Provision profile for manual signing, the one you should create using distribution certificate.
Should work.
Revoke that certificate which you are going to use and create it again manually or automatically from xCode. It helped me at last.
When I am creating a new certificate from my Xcode 9.2 the error was appears "You already have a current iOS Distribution certificate or a pending certificate request".
Just 2 steps to fix this error.
Remove old certificate from developer.apple.com
Create a new certificate from Xcode or developer.apple.com
My problem has been solved (I am using Xcode 9.2).
Open Keychain Access.app
Select "Login" and Search Apple Development:{your apple ID}
Backup all search result(if needed)
Delete this one(or more) Certificate
Restart Xcode, it will automatic repair this problem.
This work for me.

iOS Distribution certificate

I am having a problem with Xcode and the iOS Distribution certificate.
When I try to validate an archive, I get the message that there already is a valid distribution certificate but that it is not installed. My signing identity is also installed altho the message says it is not. I have no idea how this is possible since I have published apps to the app store before without any problems.
Anyone who knows how to fix this?
Xcode version 6.4
I solved it by doing this:
Create a NEW production certificate through developer.apple.com which
requires you to use Keychain Access to create a new private key on
your computer
In the same developer portal, open your distribution Provisioning
Profile used with this app and select the new production certificate
which you just created. Generate the provision then download it and
run it
Run your app, Archive it, then export the archive.
And viola
This took me days if not weeks to figure out, I hope it helps you.
The problem is the distribution certificate was installed in another mac.
You can:
Export it from that mac and import to your Xcode.
Go to apple developer website, revoke current distribution certificate. Then open Xcode get new distribution certificate for your mac.

Transferring Apple dev account & certificate to new machine

I've recently attempted to transfer my apple dev certificate to a new mac, however, the provisioning profiles are appearing as valid signing identity not found.
I imported my developer account into Xcode5 and when I deploy a build, I get the option to fix the issue of not having a valid signing - this generates an iOS team provisioning profile for the bundle id.
So far have found this is fine for testing - we distribute ourselves not using the app store.
If anyone would be able to give me a heads up on whether this is an okay method, or whether I will need to generate a new certificate for distribution in case we do use the app store for distribution.
If you still have access to your previous computer, you can export as p12 the private key you used to generate the Apple certificate.
Go to keychain, select the iOS certificate and right click to export it. Then import it to your new computer and you do not need to generate new certificates.
what you need to do is to remake the developer and distribution certificates for your new mac and install it then, you update your provision profile with the new certificate, reinstall it and everything works
PS: for remake your developer and distribution certificates you have to go in the keychan
Certificate Assistant > Request a Certificate From a Certificate Authority..
then add your email and common Name, check Saved to disk. Finally Into the developer web site you remove your old certificates and create the new one with the new file that you have in the disk.
Did you export from Xcode → Preferences → Accounts like Apple's guide suggests?
Did you also export your private key from the keychain? I have seen this issue before, and that was resolved by exporting and importing the private key.
If you do want to distribute on App Store later on you will definitely need to import a valid certificate, yes.
here you can find a solution or ask your problem to a developers Apple support:
https://developer.apple.com/support/
Other way you can call the developer support center here:
https://developer.apple.com/contact/phone.php

iOS Add a certificate to an existing distribution profile

I am trying to upload a new version of our application to the app store, however Xcode tells me I don't have a valid identity to sign with.
I've looked into the distribution profile and found that indeed only our company certificate is connected with this distribution profile. I need to add my personal certificate to this distribution profile, but I've not been able to find a way to do this.
Does anyone know if this is possible?
EDIT: Actually, it doesn't look like my certificate is a DISTRIBUTION certificate anyway. I suppose I'd actually need to create a new distribution certificate? Is it possible to change an existing developer certificate to also be a distribution certificate?
You cannot add a certificate to Existing Distribution or Provisioning Profile .. !! You must either
Download the original certificate the one with which the Profile is Associated OR
Create Distribution Profiles for Your Developer Certificate - the one you currently have.
Me also faced same error log from Xcode 4.3 on uploading second version of build to app store.
Then I used old version of Xcode to upload build and successfully uploaded. Here is similar post that helped me.
Xcode 4.3: Codesign operation failed (Check that the identity you selected is valid)

Resources