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

I get the following error message whenever I try to create a real device (works fine when using the simulator, and I can create and install through TestFlight without any problems):

Unable to set "AppName"

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

Everything worked fine, then this error began to appear, apparently for no reason. I tried the following fixes (several times and in different orders), but nothing worked:

  • Mac reboot
  • Restart xcode
  • Reinstall Xcode
  • Reinstall certificates and provisioning profiles (overwrite old ones and completely delete old ones)
  • Delete and revoke old certificates and recreate and install them
  • Settings β†’ Accounts β†’ View details β†’ Download all
  • Edit: Remove all expired certificates and replace with updated versions
  • Removed all files related to application development, then cloned from git

I tried to create and run the application on another Mac, and it works fine, so there is definitely something wrong with my machine, but I have no idea what.

+10
ios xcode
source share
10 answers

I managed to solve the problem by moving the application source files to a new directory. I still don’t know what exactly caused the problem, but this fix works quite well.

+8
source share

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

+12
source share

For me, it was necessary to go to the settings, and for the accounts, select your developer profile and view the viewing information, then there is a signature certificate called "iOS Development" (maybe you sign with another, but it's automatic) click the reset button next to it and then try again.

+2
source share

rename your directory, do not use decimal point and 0 (zero).

+1
source share

Follow this:

  • How to remove provisioning profiles from Xcode to remove your form.
  • Create new certificates and you're done :)
  • Clean the project (CMD-Shift-K) if you get this error Cause: No suitable image found. Found: ....
+1
source share

I had this problem too, and I tried everything. Recovery of all my certificates. Clearing my certificates in a keychain. The regeneration of my certificates failed.

Finally, the solution for me was:

  • Switching to Apple Developer
  • Go to Preliminary Profiles
  • Restore preliminary profiles (plus button) for my specific application .
  • Then download them to your Mac and click on them to install.
0
source share

I had the same problem with a cordova app creating an ios platform.

Today I did an update on the cordova, and I realized that now the Project.xcworkspace file was also created.

Using the .xcworkspace file works fine. Why which cordova has changed, I do not know. Perhaps you can read the update in detail here: https://cordova.apache.org/docs/en/latest/guide/overview/

enter image description here

0
source share

This solution worked for me:

Go to Xcode β†’ Settings β†’ Accounts β†’ "Your Account" β†’ Create a New iOS Development Certificate

Fin.

0
source share

delete your account in the xcode settings, add again, everything works.

0
source share

If you are sure your certificates and provisioning profiles are valid, you should check your expired hidden Apple certificates in Keychain Access.

I had a similar problem when trying to send my archive to the App Store, and the solution was to renew the certificate provided by Apple, which expires on February 14, 2016 and makes it impossible to send.

You must follow these steps:

Xcode 7 Error: "There is no iOS distribution subscription id for ...

Also check out this documentation page:

https://developer.apple.com/support/certificates/expiration/

-one
source share

All Articles