Xcode无法在您的钥匙串中找到此配置文件的有效私钥证书对 [英] Xcode could not find a valid private-key certificate pair for this profile in your keychain

查看:351
本文介绍了Xcode无法在您的钥匙串中找到此配置文件的有效私钥证书对的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[在立即标记为重复之前,我已经阅读了其他一些具有相同问题描述但在应用答案后没有解决方案的人]

[Before immediately marking as a duplicate, I've read through a few others with the same problem description but don't have a solution after applying answers from them]

几天前我创建了一个配置文件,并成功地使用它在我的iPhone上运行应用程序。

Several days ago I created a profile and was successfully able to use it to run app on my iPhone.

现在我使用不同的笔记本电脑进行开发无法继续,因为我不断得到Xcode无法在您的钥匙串中找到此配置文件的有效私钥证书对。
我尝试使用与之前相同的iPhone /配置文件组合,另外我还有另一部iPhone,并使用该设备的id生成了新的配置文件。但是,我也得到了与该个人资料/手机相同的消息。

Now however I am using a different laptop for development and am unable to progress as I keep getting a "Xcode could not find a valid private-key certificate pair for this profile in your keychain". I have tried with the same iPhone/profile combination as I used previously, in additional I have another iPhone and have generated a new profile with that device's id. However I get the same message with that profile/phone too.

从该网站上的其他帖子看来,当个人资料未被拖放时,人们会遇到此问题管理器的库部分 - 我在Xcode上拖动了配置文件,并且在管理器的库部分和设备部分中都有一个包含相关配置文件的配置文件部分。

From other postings on this site seems people got this problem when the profile had not been dragged/dropped in the Library section of Organizer - I dragged the profiles on Xcode and there is a resulting Provisioning Profiles section containing the relevant profile in both the Library section and Devices section of Organizer.

证书在Keychain Access中显示为有效。

The certificate is showing as being valid in Keychain Access.

有任何建议吗?

稍后添加:尝试此问答。 A来自Apple:

Added Later: trying this Q&A from Apple:

https://web.archive.org/web/20141029102125/http://developer.apple.com/library/ios/qa/qa1618/_index .html

他们说在Keychain Access中点击.p12文件。他们在说什么,.p12文件是什么,在哪里?它没有显示在他们自己的文档屏幕截图中,也没有出现在我的Keychain Access中。它应该是吗?

They say within Keychain Access click on the .p12 file. What are they talking about, what and where is the .p12 file? Its not shown in their own documentation screen shots and nor does it appear in my Keychain Access. Is it supposed to?

推荐答案

你能做的最好的事情是从你的钥匙串中删除证书然后让它们回来,这样XCode 4的组织者不再困惑。我已经用7个简单步骤编译了它:

The best thing you can do is delete the certificates from your Keychain and get them back so XCode 4's Organizer stops being "confused". I've compiled it in 7 "easy" steps:


  1. 删除证书:打开名为 Keychain Access的应用程序在Mac上(您可以点击键盘上的键命令+空格键以带来 Spotlight 并输入 Keychain Access 以启动它)。然后选择左上方列表中的 login 和左下方列表中的 Certificates ,您将只删除以iPhone Developer或iPhone Distribution开头的证书。

  1. Delete your Certificates: Open the Application called Keychain Access on your Mac (You can hit the keys command + space bar on your keyboard to bring Spotlight and type Keychain Access to launch it). Then select login on the upper left list and Certificates on the lower left list, you will delete only the Certificates starting with the words "iPhone Developer" or "iPhone Distribution".

您需要通过登录Apple iOS Developer帐户并转到 Provisioning Portal 然后转到旧版证书来撤销旧证书左侧菜单上的证书选项。然后找到您的开发者证书并点击右侧显示撤销的链接。

You need to revoke the old certificates by logging into your Apple iOS Developer's account and going to the Provisioning Portal and then to the Certificates option on the left menu. Then locate your Developer Certificate and click on the link located at the right that reads "Revoke".

返回 Keychain Access 在Mac上的应用程序,在菜单栏上单击以下菜单:Keychain Access - >Certificate Assistant - >从证书颁发机构申请证书。如果需要,只需输入您的电子邮件并修改请求为:选项,选择保存到磁盘选项...对话框将询问您要在何处保存CSR文件,通常称为 CertificateSigningRequest.certSigningRequest

Go back to the Keychain Access Application on you Mac, click on the menu bar the following menus: "Keychain Access" -> "Certificate Assistant" -> "Request a Certificate from a Certificate Authority". Just enter you email if needed and modify the option that says "Request is:" selecting the option "save to disk"... a dialog will ask you where do you want to save a CSR file which is normally called "CertificateSigningRequest.certSigningRequest".

返回在线 Provision Portal 并创建一个新的证书,上传你的文件只是在旧证书所在的同一选项上生成。

Go back to the online Provision Portal and create a new Certificate uploading the file you just generated on the same option where your old Certificates were before.

大约一分钟后......您将在证书下看到 list您现在可以下载新证书,也可以下载WWDR中间证书(请参阅证书列表下的链接)。下载它们并通过双击将它们提供给 Keychain Access

After a minute or so... you will see under the Certificates list that you can now Download you new certificate and that you can also download a WWDR intermediate certificate (See the links under the certificate list). Download them and give them to your Keychain Access by double-clicking them.

您必须转到名为 Provisioning 的Provisioning Portal 菜单选项,您将在其中看到所有App的开发配置文件。您必须单击右侧的编辑 - >修改链接并验证是否已选中证书。

You will have to go to the Provisioning Portal menu option called Provisioning where you will see all your App's Development Provisioning Profiles. You will have to click the link "Edit"->"Modify" at the right and verify that the Certificate is checked.

最后,关闭XCode 4\" 。当您重新打开它时,请转到菜单窗口 - >管理器。因为组织者从您的钥匙串中读取证书,所以它们应该在那里。下次插入设备时,只需单击配置,确保旧证书已用完,新证书已开启。

Finally, just close "XCode 4". When you re-open it, go to the menu "Window" -> "Organizer". Because the Organizer reads the certificates from you keychain, they should be there already. Next time you plug your devices just click on Provisioning and make sure the old certificates are gone and the new certificate is on.

这篇关于Xcode无法在您的钥匙串中找到此配置文件的有效私钥证书对的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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