证书已过期或已被撤销 [英] Certificate has either expired or has been revoked

查看:287
本文介绍了证书已过期或已被撤销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前段时间我开始编写一个新的ios应用程序,经过长时间的休息后,我再次开始编写它几乎完成了。

A while ago I started coding a new ios app, after a long break from it, I'm working on it again and have it almost complete.

I在模拟器上测试它,但是当我试图将它安装在我的iphone 6上时(我过去已经做过)我收到一个错误,告诉我我的应用程序无法安装,因为用于签署此应用程序的证书已过期或已被撤销。

I test it on the simulator but when I tried to install it on my iphone 6 (something I have already done in the past) I got an error telling me that my app cannot be installed since the certificate that was used to sign this app expired or has been revoked.

我尝试了很多东西:


  1. 我删除了所有证书来自xcode,keychain和apple developer的provisioninig配置文件,让xcode为我创建新的

  2. 我删除了xcode,并从开头做了整个过程

但这并没有解决我的问题。

But this didn't fix my issue.

知道可能出现什么问题?

Any idea what might be the problem?

推荐答案

解决方案

首先通过持有清理项目 Shift(⇧)+ Command(⌘)+ K
选择 Pro风管> 清洁

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

然后


  1. 转到XCode 菜单> 偏好

选择帐户> 团队> 查看详情

从配置资料列表中选择任何配置资料

Select any Provisioning profile from Provisioning Profiles list

右键单击>选择在Finder中显示。然后,您将看到所有配置文件列表

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

从文件夹中选择所有配置列表并将其移至垃圾箱

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

单击配置文件列表下方的全部下载,下载所有配置文件。

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

现在,再次运行它应该工作!

Now, Run again and it should Work!

这篇关于证书已过期或已被撤销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆