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

本文介绍了解决Xcode真机调试过程中遇到的证书过期或被撤销的问题。通过清理项目、重新下载配置文件等步骤,可以有效解决证书问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在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一下,好像问题也不大。
但是最近频发发生这样的事情,有时候需要耗费很久才能在搞定。
后来在stack overflow找到一个帖子,是这样解决的:
http://stackoverflow.com/questions/36689116/certificate-has-either-expired-or-has-been-revoked
这里写图片描述
First of all clean 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 profile from Provisioning Profiles list
Right click > Select Show in Finder. Then you will see all lists of provisioning profiles(在该工程的Provisioning profile处右击)
Select all provisionaling list from the folder and move it to trash(删除所有provisionaling list)
Download All provisioning profiles by clicking Download All below Provisioning Profile lists.(点击左下角Download All provisioning profiles)
Now, Run again and it should Work!

转载自http://www.cnblogs.com/zzugyl/p/5555695.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值