The certificate used to sign “appName” has either expired or has been revoked

概述

今天真机调试时,Xcode 突然提示

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

分析

提示中说的很清楚,是证书除了问题,需要更新证书

解决

  1. Xcode-Product-Clean Build Folder 清理下工程
  2. 打开 “钥匙串访问”,其中左侧“种类”选择“证书”,找到当前 Xcode 登录的那个账号,此时应该显示已经过期了,将该证书删除
  3. 在 Xcode-Preference-Accounts 中在对应账号下点击 "Download Manual Profiles" 重新下载证书即可

参考

  1. Certificate has either expired or has been revoked

你可能感兴趣的:(The certificate used to sign “appName” has either expired or has been revoked)