本文介绍了Xcode - iPhone - 配置文件与默认钥匙串中的任何有效的证书/私钥对不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我的iPhone添加到Xcode4来测试我的应用程序。我在Apple Developer Center中添加了设备,并下载了Provision-Profile。我们每月支付99美元的帐户,我不是唯一的人使用这个帐户。所以已经有一个旧的证书,我试图添加到我的钥匙串管理器。但我看到上面的红色文本(从德语翻译)此证书已由未知实例签名。

I tried to add my iPhone to Xcode4 to test my Application on it. I added the device in the Apple Developer-Center and downloaded the Provision-Profile. We pay 99$ per month for the account and I'm not the only person who use this account. So there is already an "older" certificate present which I tried to add to my keychain-manager. But I see a red-text above it (translated from german) "This certificate has been signed by an unknown instance.".

在我的XCode-设备管理器Provisioning-Section也有一个错误:XCode无法在您的钥匙串中为此配置文件找到有效的私钥/证书对。

In my XCode-Device Manager in the Provisioning-Section there's also an error: "XCode could not find a valid private-key/certificate pair for this profile in your keychain."

我真的不明白我现在要做的。这些键可能真的不存在我的钥匙串,我找不到他们。所以我如何创建他们知道,如果在苹果开发中心已经有一个证书,如何使用它们?

I really don't understand what I have to do now. These keys may really not exist in my keychain, I can't find them. So how I have to create them know and how can I use them if there is already one certificate in the Apple Dev-Center?

推荐答案

p>要在Apple provisioning配置文件网站上生成证书,首先必须在mac上生成密钥,然后上传公钥。 Apple将使用此密钥生成您的证书。

To generate a certificate on the Apple provisioning profile website, firstly you have to generate keys on your mac, then upload the public key. Apple will generate your certificates with this key. When you download your certificates, tu be able to use them you need to have the private key.

错误XCode找不到有效的私钥/证书对对于您的钥匙串中的此配置文件。意味着您没有私钥。

The error "XCode could not find a valid private-key/certificate pair for this profile in your keychain." means you don't have the private key.

也许是因为您的Mac被重新安装,也许是因为此键是在另一台Mac上生成的。因此,为了能够使用您的证书,您需要找到此密钥并将其安装在钥匙串上。

Maybe because your Mac was reinstalled, maybe because this key was generated on another Mac. So to be able to use your certificates, you need to find this key and install it on the keychain.

如果您找不到它,您可以重新生成新密钥过程,并获取您将能够使用的新证书。

If you can not find it you can generate new keys restart this process on the provisioning profile website and get new certificates you will able to use.

这篇关于Xcode - iPhone - 配置文件与默认钥匙串中的任何有效的证书/私钥对不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 02:36