未安装分发证书/私钥 [英] Distribution certificate / private key not installed

查看:342
本文介绍了未安装分发证书/私钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Xcode 9.1,在构建iOS应用后,我想将其存档并将其上传到appStore进行Beta测试. 但是在单击按钮Upload to the App Store...并选择Automatically manage signing后,出现以下问题:

Using Xcode 9.1, after building an iOS app, I want to archive it and upload it to the appStore for beta-testing. But I get the following issue after clicking the button Upload to the App Store... and choosing Automatically manage signing:

我的名字"有一个iOS发行证书,但其私钥是 未安装.

"My Name" has one iOS Distribution certificate but its private key is not installed.

我不知道为什么未安装此私钥",但是分发证书可能是在其他计算机或其他设备上创建的.无论如何:

I do not know why this "private key is not installed", but the Distribution certificate may have been created on a different computer or something. In any case:

检索丢失的私钥并进行安装的最简单方法是什么?为了使事情正常.

What is the simplest way to retrieve the missing private key and install it? In order to make things work.

推荐答案

您只能拥有一个发行证书.它将Apple已知的公钥与私钥结合在一起,后者位于某些计算机的钥匙串中.如果此分发证书是在另一台计算机上创建的,则私钥在该计算机的钥匙串上.如果没有它,此发行证书将无法使用.

You can only have one distribution certificate. It unites a public key, known to Apple, with a private key, which lives in the keychain of some computer. If this distribution certificate was created on another computer, then the private key is on the keychain of that computer. And this distribution certificate does not work without it.

因此,要在此计算机上使用此分发证书,您必须找到该计算机,打开钥匙串访问",找到并导出私钥,将其邮寄或以其他方式将其发送到 this 计算机,并将其导入到此计算机的钥匙串中.

So to use this distribution certificate on this computer, you must find that computer, open Keychain Access, locate and export the private key, mail it or otherwise get it to this computer, and import it into the keychain of this computer.

如果您进入Xcode中的Accounts pref窗格并双击Team,您将看到一个对话框,可以为您提供帮助.如果看到分配证书,并且显示不在钥匙串中",则可以按住Control键并单击该证书以获取菜单项,该菜单项可让您向创建证书的任何人发送电子邮件,并要求他们将其发送给您.该人可以使用相同的导入来选择导出证书",并可以通过电子邮件将导出的证书发送给您.

If you go into the Accounts pref pane in Xcode and double-click your Team, you'll see a dialog that gives you help with this. If you see your distribution certificate and it says Not In Keychain, you can control-click that certificate to get a menu item that lets you email whoever created the certificate and ask them to send it to you. That person can use this same import to choose Export Certificate and can email you exported certificate.

无论哪种方式,私钥或导出的证书都将被密码化.您需要知道密码才能使用它.

Either way, the private key or exported certificate will be passworded. You'll need to know the password in order to use it.

这篇关于未安装分发证书/私钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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