During the Xcode debugging development process, whether you use a personal certificate or an enterprise certificate, you often encounter problems such as:
The certificate used to sign "XXX" have either expired or has been revoked. An updated certificate are required to sign and install the application.
Just started to delete the certificate in key, fix it in Xcode, as if the problem is not big.
But the recent frequent occurrence of such things, sometimes takes a long time to be done.
Later, a post was found in stack overflow, which was resolved as follows:
Http://stackoverflow.com/questions/36689116/certificate-has-either-expired-or-has-been-revoked
First of all, the project by holding Shift (?) +command (?) +k or Select Product > Clean
Then
Go to XCode menu> Preference
Select account > Team > View Details
Select any Provisioning profiles from Provisioning Profiles list
Right click > Select Show in Finder. Then you'll see all lists of provisioning profiles
Select all provisionaling list from the folder and move it to trash
Download all provisioning profiles by clicking Download All below provisioning profile lists.
Now, Run again and it should work!
The certificate used to sign "XXX" have either expired or has been revoked