Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The certificate used to sign “APP” has either expired or has been revoked - ios10 [duplicate]

Tags:

xcode

ios

I am making a new app, and just started to try and launch on an actual phone but continue to get the error below

The certificate used to sign "APP" has either expired or has been revoked. 
An updated certificate is required to sign and install the application.

Here is what I have tried to fix it

  1. Remove all certificates from developer account
  2. Remove all certificates from KeychainAccess
  3. Remove account from Xcode & close Xcode
  4. Re-add account to Xcode
  5. Check "Automatically manage signing" & have Xcode generate the signing

But I continue to get the error,

I have also tried manually generating a Certificate and manually Provisioning Profile, not using the "Automatically manage signing", and selecting the Profile which shows not build errors and when I click the info button says expires in 11 months and has all checkmarks

How can I fix this error?

Thank you very much for help in advance.

EDIT

I am now trying to do this manually, here are steps I take,

  1. Revoke all certificates and delete all Prov. Profiles From Member Center and Local Machine
  2. Create Certificate in member center with Keychain Access download and add the Cert to Keychain
  3. Make Provisional Profile in Member Center, download Profile and import profile into Xcode
  4. Run app, still get same error

What am I doing wrong?

Thanks

like image 840
iqueqiorio Avatar asked Aug 30 '16 18:08

iqueqiorio


People also ask

How do I fix an expired Iphone certificate?

iOS settings.Click Apple certificates. The current certificate details are displayed: the unique identifier (UID), the Apple ID, and expiration date. Click Renew Certificate.

How do I revoke an Apple ID certificate?

If you suspect that your Pass Type ID certificate or Developer ID certificate and private key have been compromised, and would like to request revocation of the certificate, send an email to [email protected].

Can an expired certificate be revoked?

No. Revocation is an active event, not something that passively or automatically happens. Expiration is passive, though. An expired cert is no longer valid, so there's no need to stick it in a CRL or update OCSP.


2 Answers

  1. Sign in your account under Xcode->Preferences.
  2. Select the team.
  3. General->Signing , uncheck automatic signing
  4. General->Signing(Debug), select the provisioning profile you have just created.
  5. General->Signing(Release), select the provisioning profile you have just created.

Everything should work now..

like image 79
Do2 Avatar answered Sep 20 '22 17:09

Do2


Try this in the following steps (you have made most of them as you have stated but try them in the following order):

  1. In the list with the view that you have attached, right click on each row and move each certificate to trash
  2. Go to member center download the right certificates again and click on them so
  3. Restart Xcode
  4. Go to build settings and set the right Code signing for debug/release - you should be able to see an option on the row that says "Identities from profile..."

If this doesn't work then you should consider revoking your certificate and then create a new one and the do the steps above again.

Edit:
First, move the apps source files to a new directory.

After that do the 1-4 steps from above.

like image 41
Rashwan L Avatar answered Sep 23 '22 17:09

Rashwan L