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

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

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

编辑:

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


当前回答

For Xcode 13 (maybe earlier?) - The key to this is to use the "Build Settings" tab, not the "Signing and Capabilities" tab in your Target Settings. Once you are in "Build Settings", search for the "Signing" section (you can type "Signing" in the search box). There you will see a sub-section called Code Signing Identity. In that section you can click on each line and directly choose any certificate you have in your keychain. You need to do that for all of the relevant configurations (the ones that you want to upload to TestFlight/AppStore). When you go back to the "Signing and Capabilities" tab, you should see the results of what you did and the error should have gone away.

我从下面的答案中得到了灵感:https://stackoverflow.com/a/37043501/826946

但我认为明确地列出这一点可能会有所帮助。

其他回答

在遇到最初发布的相同问题后,我终于在4次不同的尝试后让它工作了。所以这就是发生的事情,我不确定这是否是一个老问题(2009-07-09),但我还是会发布,以防它对你有帮助。对我有用的是……也许对你有用…

重新开始,删除密钥链中旧的私钥、公钥和证书 完成整个过程,从证书颁发机构请求证书,获得一个新的公钥、一个新的私钥和一个新的证书。注意:当它工作时,我只有一个私钥、一个公钥和一个证书 创建一个新的配置文件(使用刚才创建的证书),并将其放在Xcode的管理器窗口中。删除所有旧的废话。 运行它。

希望这能有所帮助。

For Xcode 13 (maybe earlier?) - The key to this is to use the "Build Settings" tab, not the "Signing and Capabilities" tab in your Target Settings. Once you are in "Build Settings", search for the "Signing" section (you can type "Signing" in the search box). There you will see a sub-section called Code Signing Identity. In that section you can click on each line and directly choose any certificate you have in your keychain. You need to do that for all of the relevant configurations (the ones that you want to upload to TestFlight/AppStore). When you go back to the "Signing and Capabilities" tab, you should see the results of what you did and the error should have gone away.

我从下面的答案中得到了灵感:https://stackoverflow.com/a/37043501/826946

但我认为明确地列出这一点可能会有所帮助。

我也遇到了同样的问题:我第一次是在跑步时把证书下载到我的小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.

好运!

我登录了开发人员帐户并撤销了开发证书。撤销和下载开发证书后,我双击新下载的证书,这一次私钥在开发证书下的KeyChain访问。

Xcode 4需要注意的是:在组织者的左边有两个不同的区域:

库>配置配置文件 设备>您的设备>配置文件

我总是把我的配置文件放在2中。即使在清洁和正确安装之后,它也不能工作。然后我发现。最后我找到了刷新按钮。如果您在1中选择“自动设备供应”。然后单击刷新,然后所有内容都得到验证(2中没有黄色警告。了)。