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

真机测试的时候弹出这样的提示:The certificate used to sign ***has either expired or has been revoked. An updated certificate is required to sign and install the application....

想了想自己清理过本地的证书,于是参照 * 上的方法试了下,果然好了。具体流程如下:

Shift(⇧) + Command(⌘) + K 或者 Product --> Clean

然后Menu --> Preference, 接着 Account --> Team --> View Details,  会有证书列表,右键 show in Finder然后 command + A 选中所有的证书将其删除。再回到 View Details中重新下载证书。下载完成之后选择 Done,回到 Target 进行 Fix Issue:

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

Reset 就 OK 了。