这事让我非常担心。我刚刚下载了iPhone 3.0 SDK,但现在我无法让我的配置文件工作。以下是我的尝试:

删除所有配置配置文件 删除登录keychain 创建新的“登录”钥匙链,使它 默认的 创建一个新的证书签名请求 创建新的开发人员和分销渠道 证书在苹果开发者中心 下载并安装它们 下载并安装WWDR证书 创建一个新的配置文件和 双击它来安装

所有的证书报告都是有效的,但是Xcode仍然不能识别它们。接下来我该试试什么?

编辑:

我完全重新安装了Mac OS X,从一个新的安装安装了3.0 SDK,仍然有同样的问题。


当前回答

我不知道他们是真的跳过了,还是我的眼睛只是呆滞了,但是....

以防其他人忽略了我所做的事情....

就像你在开发和测试时一样……

1)您需要一个DISTRIBUTION << CERTIFICATE >> 2)你需要一个DISTRIBUTION << PROVISIONING PROFILE >>

这是门户上的两个步骤,以便对内容进行签名。

在那里,我创建了开发人员证书并将其复制到Mobile Provisions文件夹,不知道为什么它不起作用。

一旦我有了配置文件

*宾果*

其他回答

对于两个不同的配置概要文件(开发和分发),有两个不同的证书。您必须在keychain中安装两个证书。在iPhone开发者计划入口:

证书->开发->下载 证书->分发->下载

双击这两个证书。之后,两个证书都必须出现在Keychain中。

以下是简单的步骤:

从计算机上的keychain(其中已经包含开发密钥)开始,创建一个证书请求。将请求上传到开发站点并创建证书。 使用证书创建配置文件。 下载配置文件并将其放到Xcode上。

现在所有的点都连接起来了,应该可以工作了。这对开发和推广都适用。

我得到的最佳答案是导出您的密钥,而不是仅仅试图导入证书文件。

当您从生成请求的密钥链中导出密钥时,您将得到一个Certificates。P12文件,将需要的键滚动在一起。

然后将其导入新计算机。

对于这样的密钥,最好保留一个滚动的证书包文件,因为很多时候“公共”密钥或证书文件不足以进行恢复。

对于开发证书,您只需创建一个新的证书并将其与配置文件匹配即可。但是对于分发,就像你要提交给苹果时,你不能这样做,必须使用团队代理创建的分发证书。问题是您需要计算机上的私钥。这很简单,但是,创建证书的团队代理复制私钥给你,下面是来自Apple的说明,我希望这对你有帮助。

It is critical that you save your private key somewhere safe in the event that you need to develop on multiple computers or decide to reinstall your system OS. Without your private key, you will be unable to sign binaries in Xcode and test your application on any Apple device. When a CSR is generated, the Keychain Access application creates a private key on your login keychain. This private key is tied to your user account and cannot be reproduced if lost due to an OS reinstall. If you plan to do development and testing on multiple systems, you will need to import your private key onto all of the systems you’ll be doing work on.

To export your private key and certificate for safe-keeping and for enabling development on multiple systems, open up the Keychain Access Application and select the ‘Keys’ category. Control-Click on the private key associated with your iPhone Development Certificate and click ‘Export Items’ in the menu. The private key is identified by the iPhone Developer: public certificate that is paired with it. Save your key in the Personal Information Exchange (.p12) file format. You will be prompted to create a password which is used when you attempt to import this key on another computer. You can now transfer this .p12 file between systems. Double-click on the .p12 to install it on a system. You will be prompted for the password you entered in Step 4.

“这是苹果门户网站的一个漏洞。他们在配置配置文件中缺少一个必要的字段。他们在2009年6月16日晚些时候修复了这个错误。”