前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >关于revoke certificate和备份的这点事

关于revoke certificate和备份的这点事

作者头像
JoeyBlue
发布2021-09-07 14:45:53
5390
发布2021-09-07 14:45:53
举报
文章被收录于专栏:代码手工艺人

事情是这样的,前几天电脑崩溃,硬盘数据全部丢失,重装系统和Xcode之后,从Develop Center的Certificates里重新下载证书,安装到新电脑上,在真机上运行时,提示报错:”A valid signing identity matching this profile could not be found in your keychain”, 按照字面意思查了一下,是因为本地KeyChain里丢失了private key的缘故,得到的结论是要么从之前的备份中恢复,或者重新生成新的证书。遗憾的是我之前并没有保存备份,无奈只好重新生成。一个问题马上出现在脑海,就是重新生成新的证书是否会对线上的App产生影响。查了一下官方的文档,发现有这部分详细的说明,消除了我的顾虑,内容如下(参考2):

代码语言:javascript
复制
Important: Members of the Standard iOS Developer Program can be assured that replacing either your developer or distribution certificate will not affect any existing apps that you've published in the iOS App Store, nor will it affect your ability to update those apps.

Notes before beginning:

Replacing your distribution certificate won't affect your developer certificate or development profiles.

Similarly, replacing your developer certificate won't affect your distribution certificate or distribution profiles.

Replace only your development certificate if you are troubleshooting an issue running your app on device through Xcode.

Replace only your distribution certificate if you are troubleshooting an issue creating, submitting or installing a distribution build.

After replacing your certificate(s) you are required to update and reinstall any provisioning profiles that were bound to the old certificate.

搞清楚问题和解决办法,就开工:

  1. 首先在iOS Provisioning Portal里revoke掉当前失效的Certificates,并创建一个新的Certificates(参考[2])
  2. 通过import和export Developer Profile备份和恢复(参考[3]和[4])

Links:

  1. iOS Provisioning Portal
  2. How do I delete/revoke my certificates and start over fresh?
  3. Exporting and Importing Developer Profile
  4. Transferring Your Identities
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2013-06-122,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档