您的位置:首页 > 移动开发

iOS开发问题---调试提示The certificate used to sign “appName” has either expired or has been revoked.

2016-09-20 15:56 585 查看
在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”。无法进行真机调试也无法打包。

看提示是证书过期,但是在开发者中心重新更新过证书之后,还是会有这个bug提示。在Xcode中Accounts中Reset过之后还是不行。然后网上查找之后总算知道了原因

附参考链接:http://stackoverflow.com/questions/37164314/the-certificate-used-to-sign-appname-has-either-expired-or-has-been-revoked-a

根据我的理解是在本地存储的证书中有同名的无效的证书,而Xcode只识别了无效证书,有效证书被无效的证书覆盖了

解决办法:

1.打开钥匙串,将里面关于此项目的证书中过期的全部删掉ps:最后我的证书和证书里面的过期的都删掉

2.如果还不行Accounts中Reset后重新编译应该就好了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息