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

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

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

编辑:

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


当前回答

对于开发证书,您只需创建一个新的证书并将其与配置文件匹配即可。但是对于分发,就像你要提交给苹果时,你不能这样做,必须使用团队代理创建的分发证书。问题是您需要计算机上的私钥。这很简单,但是,创建证书的团队代理复制私钥给你,下面是来自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.

其他回答

嘿,伙计们,我昨天遇到了一堆麻烦。我经历了整个过程几次,使用助手向权威机构请求新的证书,清除门户中的所有内容,上传证书,创建新的配置文件并下载所有内容。不行。

但是,看看这个。

首先清除门户上的所有证书,重新开始。

在使用助手创建新的证书请求后,按“在查找器中显示”,然后双击那个坏男孩。您应该会看到一个证书助手的弹出窗口,屏幕上显示“请指定颁发证书的颁发机构”等。如果你没有,只要关闭它,再次双击。 现在继续对话框选择 “从现有CA请求证书”-继续 请求已“保存到磁盘”-继续 保存在任何你喜欢的地方,甚至覆盖文件。

最后你会看到神奇的“创建密钥对”

跑到钥匙链访问,你会看到你的钥匙在那里!将这个证书上传到apple门户,然后正常地通过他们的向导,现在一切都应该工作得很好了。

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

昨天我们的CI服务器也遇到了类似的问题。无法对应用程序扩展名进行错误签名

Code Sign error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier XXX were found.

注意:我自己从开发者门户网站创建了配置文件(不是由Xcode管理的)。

错误在于,我已经使用分发证书创建了供应配置文件,但是构建设置设置为使用开发人员证书。将其更改为使用分发证书解决了这个问题。

摘要:在生成设置中也要匹配用于创建配置文件的证书。

我也遇到了同样的问题:我第一次是在跑步时把证书下载到我的小MacBook上的。当我试图在iMac上安装证书时…然后我遇到了这一页上描述的问题。

和你们很多人一样,我花了几个小时把头发揪出来,然后我按照下面的步骤来解决它:

Close all your stuff except your webpage that should be logged into App Dev center. Open Xcode. Click WINDOW > ORGANIZER. Then click the Devices tab and select "Provisioning Profiles" on the left. That should bring up your provisioning profiles. Highlight one by one (if more than 1), right click and delete profile. Yes, just do it! Delete them all! (I kept making a new one after a new one trying to make the thing work.) From the first page you see after logging into the App Dev Center on the right side click "iOS PROVISIONING PORTAL" > (do not "launch assistant"). Instead click on the left side. Select CERTIFICATES. You will probably have just one line listed with your name/company - from there click on the right side REVOKE. Click OK to verify that's what you want to do. On the same page click DEVICES. Click the box next to your device you are trying to provision and click REMOVE SELECTED. Again click OK to verify. Wait about 2 minutes to let Apple do their thing. Now click on "HOME" that is on the left side navigation. Click "Launch Assistant" create a new app ID - call it whatever you want. Just make sure it's unique enough to know that's the one you just created because the others you've been messing with all day will not be deleted from Apples Dev Center. You should be able to follow the rest of the Assistant without troubles -- the main thing is you just had to delete your old provision profiles and start over.

好运!

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

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