当证书过期之后的解决办法

The certificate used to sign "XXX" has either expired or has been revoked

在Xcode真机调试开发过程中,无论是使用个人证书或者是企业证书,经常会遇到这样的问题:

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

刚开始在key里删除证书,在Xcode中fix一下,好像问题也不大。

但是最近频发发生这样的事情,有时候需要耗费很久才能在搞定。

解决问题步骤:

1. First of all clean the project by holding Shift(⇧)+Command(⌘)+K or Select Product > Clean

Then

2. Go to XCode Menu> Preference

3. Select Account > Team > View Details

4. Select any Provisioning profile from Provisioning Profiles list

5. Right click > Select Show in Finder. Then you will see all lists of provisioning profiles

6. Select all provisionaling list from the folder and move it to trash

7. Download All provisioning profiles by clicking Download All below Provisioning Profile lists.

8. Now, Run again and it should Work!

你可能感兴趣的:(当证书过期之后的解决办法)