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

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
  • 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.


Originally asked on StackOverflow.

Replies

Hello I have tried all steps but does not effect how can i fixed this problem?

Any update ?

I had the same issue; changing the bundle identifier and setting it back solved the issue.
Add a Comment

I was having the same issue. After trying everything from above, I realized that my device had the Airplane Mode turned on. Once I connected it to the internet, the issue was fixed.

  • That was my issue too, test device doesn't have a sim so no way to download the certificate. Connected it to the same WiFi as the laptop and now deploy works. Thanks!!!

Add a Comment