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:
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.
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.
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].
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.
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.
A Product -> Clean
did all the work for me :)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With