All replies. Revoking is essentially useless as the certificates are expired. Revocation is for time valid certificates that must be terminated prior to their expiration date. It is technically possible to delete expired certificates but just make sure you will never want to check if they were issued in the past.
If your certificate expires, passes that are already installed on users' devices will continue to function normally. However, you'll no longer be able to sign new passes or send updates to existing passes. If your certificate is revoked, your passes will no longer function properly.
Edit: This answer doesn't work for Xcode 10 and higher. See turkenh's answer.
Solution
First of all, clean the project by holding Shift(⇧)+Command(⌘)+K or Select Product > Clean
Then:
Go to Xcode Menu> Preferences
Select Accounts > Team > View Details
Select any Provisioning profile from the Provisioning Profiles list
Right-click > Select Show in Finder. Then you will see all lists of provisioning profiles
Select all provisioning lists from the folder and move them to the trash
Download All provisioning profiles by clicking Download All below Provisioning Profile lists.
Now, run again and it should work!
Edit: This answer doesn't work for Xcode 10 and higher. See turkenh's answer.
I had experienced this problem and was able to find an answer.
The answer which this is coming from can be found here.
Here is what you have to do:
These steps solved the problem for me.
For those who cannot find "view details" button at Account > Team > View Details, here is how I solved this on Xcode 10:
and try again.
I had a slightly different solution. It may have been from updates, or my particular use case.
Using Xcode 7.3.1
I am using a file sharing system (dropbox) to develop on two different machines. Using the Download All
solution didn't fix it for me.
Following the link above, I took the advice of
delete all the profiles in ~/Library/MobileDevice/Provisioning Profiles
(which is an extreme measure, but Xcode should now download what you need)
Xcode prompted to update itself.
I still have an issue when switching between developing on the different machines. It presents the following warning/failure:
This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.
The resolution to that issue is to delete the development item off of the device, and it will then reinstall.
A simple "Clean" (Shift(⇧)+Command(⌘)+K) solved to me
Found another case which results in bloody Certificate has either expired or has been revoked
error in Xcode 9
. If you're trying to sign with valid certificate but you do have another revoked certificate in the same team on your keychain, Xcode throws this error. To check if you do have revoked certificate see Xcode -> Preferences -> Accounts -> Your Apple ID -> Your Team -> Manage Certificates
. Deleting revoked certificate with Keychain Access
solves this. Looks like another code sign bug in Xcode.
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