Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

I get the following error message whenever I try to build to an actual device (works fine when using the simulator, and I can build to and install via TestFlight without issue):

Unable to install "AppName"

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

Everything was working fine, then this error started appearing for seemingly no reason. I have tried the following fixes (multiple times, and in varying orders), but nothing has worked:

  • Restart Mac
  • Restart Xcode
  • Re-install Xcode
  • Re-install certificates & provisioning profiles (overwriting old ones, and completely deleting old ones)
  • Delete & Revoke old certificates & re-create and install them
  • Preferences -> Accounts -> View Details -> Download All
  • Edit: Removed all expired certificates & replaced with updated versions
  • Deleted all files related to app development, then cloned fresh from git

I've tried building & running the app on a different Mac and it works fine, so it's definitely something wrong with my machine but I have no idea what.

like image 810
Tam Avatar asked May 11 '16 13:05

Tam


People also ask

How do I update my Apple certificate?

Click Apple Push Certificates portal. In the new tab, sign in to the Apple portal with the Apple ID and password you used when you created the certificate. Next to the certificate you want to renew, click Renew and accept the terms of use.

How do I revoke an Apple developer 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].

How do you fix the identity used to sign the executable is no longer valid?

go to Preferences-> Accounts-> under your AppleId -> View Details -> under signing identities you can see the status of your certificate "Valid" or "Revoked" if revoked and you want to request a new one go to the -> + then -> the type of distribution you are trying to use.

How do I remove code signing certificate?

To Delete a Code Signing CertificateClick Code Signing (blue and silver shield), right-click on the Code Signing Certificate that you want to delete, and then click Delete Certificate. In the Confirm Delete window, read the warning and make sure that you really want to delete the certificate.


2 Answers

A Product -> Clean did all the work for me :)

like image 86
Bright Avatar answered Sep 19 '22 17:09

Bright


Managed to solve the issue by moving the apps source files to a new directory. Still no idea what exactly was causing the issue, but this fix works well enough.

like image 23
Tam Avatar answered Sep 20 '22 17:09

Tam