更新我的证书后出现代码签名错误

发布于 2024-07-18 07:38:21 字数 172 浏览 4 评论 0原文

我的证书刚刚过期。 我在团队部分更新了它,然后更新配置文件,并在我的钥匙串和 xcode 上重新安装它们,然后我收到此错误:

代码签名错误:身份“iPhone Developer”与中的任何有效证书/私钥对不匹配登录钥匙串

我应该做什么?

非常感谢

蒂埃里

my certificate has just expired.
I renewed it on Team section, then renew provisioning profile, and reinstall them on my keychain and xcode, and then I get this error :

Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the login keychain

What should I do ?

Thanks a lot

Thierry

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

忆沫 2024-07-25 07:38:21

我发现了问题。
我已经删除了我的私钥。

我必须使用创建新私钥的钥匙串请求“CertificateSigningRequest.certSigningRequest”证书。

I found the problem.
I have erased my private key.

I had to request 'CertificateSigningRequest.certSigningRequest' certifcate using keychain which create a new private key.

蓝眼睛不忧郁 2024-07-25 07:38:21

如果您在创建证书后更改计算机的密码,则必须重新完成该过程并创建新证书。 我花了 4 个小时才弄清楚这个问题。

If you change your password for your computer after you have already created a cert, you will have to go through the process all over again and create new certs. Took me 4 hours to figure this out.

我早已燃尽 2024-07-25 07:38:21

我只是想补充一点,当您的证书过期或以某种方式从您的钥匙串中删除时,您将收到此错误。 要修复它,请登录 iPhone 开发者计划门户并更新证书 - 那里的说明非常全面。

I just would like to add that you'll receive this error when your certificate is expired or when it is somehow removed from your keychain. To fix it, login to iPhone developer program portal and renew the certificate - the instructions there are pretty comprehensive.

獨角戲 2024-07-25 07:38:21

仅仅删除你的私钥是不够的。

您还必须从 Mac 中删除您的配置文件,否则新的配置文件将(默默地!)安装失败,即使它明显比现有配置文件新。

(使用iPhone配置实用程序擦除密钥是最简单的,您可以从Apple.com下载该实用程序。使用该应用程序擦除配置文件也是最简单的。每个人都应该获得iPCU!(它是免费的))

Erasing your private key is not enough.

You must also delete your provisioning profile from your Mac, otherwise the new profile will (silently!) fail to install, even though it is clearly newer than the existing one.

(erasing key is easiest using the iPhone Configuration Utility, which you can download from Apple.com. Erasing profile is easiest using that app too. Everyone should get iPCU! (it's free))

归属感 2024-07-25 07:38:21

我知道问题已得到解答,但如果有人遇到此问题并且不确定在哪里查找信息 - 我发现以下内容很有用:

您还可以在开发和配置部分中检查配置证书的状态分布选项卡。

这很有用,就像证书已更改或生成出现问题一样,现有应用程序配置文件状态将被标记为无效。 在这种情况下,无论如何你都必须修改它们,但我发现它很有用。

另外,在 XCode 中,Organizer 窗口位于
iPhone 开发 -> 配置文件
是查看任何问题(尤其是过期日期)的快速方法。

I know the question is answered, but if anyone is having issues with this and isn't sure where to look for information - I find the following useful:

You can also check the status of your provisioning certificates in the provisioning section on the development and distribution tabs.

This is useful, as if the certificates have changed or there was a problem with the generation, then the existing application provisioning profile(s) status will be marked as invalid. You'll have to modify them anyway in this case, but I found it useful.

Additionally in XCode, the Organizer window under
iPhone Development->Provisioning Profiles
is a quick way to see any issues, especially with expiration dates.

梦境 2024-07-25 07:38:21

如果未安装 WWDR 中间证书,也可能会发生这种情况。

This can happen also if WWDR intermediate certificate is not installed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文