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

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

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

编辑:

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


当前回答

以下是我所做的。

Make sure your certificates have not expired, make sure you delete all the expired ones. Get new ones etc, Once you have make sure all that is the way it should be, then focus on your project files. in finder , go to your .xcodeproj files then show package contentes. open project.pbxproj in xcode or textedit. find every refrense to PROVISIONING_PROFILE and remove the GUID, just leave empty "" Depending on your project you should have about 12+ refrences, remove all of the GUIDS. Save file, then reopen your project in XCODE Re select the correct provision profiles for all possible code signings( they should not all be the same) Build your project and you should be good to go.

我认为Xcode在某种程度上混淆了,从项目中删除了所有的Provision Profiles。Pbxproj,然后重新选择一个有效的配置文件将使它直。

其他回答

昨天也遇到了同样的问题。现在,在签署到开发人员门户之后,对于每个无效的配置概要都有一个按钮“Renew”。更新和下载更新后的配置文件似乎都能正常工作,所以问题肯定解决了:)

更新:你可能需要联系苹果来获得一个“更新”按钮,或者他们删除了它——解决方案是下载它并添加到钥匙链,不需要更新。

你试过重启你的Mac和设备吗?蹩脚的回答,但我总是先试一下。

以下是简单的步骤:

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

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

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

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

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

Because I keep coming back to this question, I will leave my answer here for the solution that works for me. It turns out that for a same public/private key developer identifier of me, it's installed twice in my keychain. Both have private key. But when I compare, one is private key of me within my developer organisation, and another one is private key of me as a personal developer. It turns out Xcode keeps trying using the wrong key. Removing the wrong duplicate key solves all the problem. Hey future me, check this one first next time!