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

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

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

编辑:

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


当前回答

我得到它工作后,重新做一切,然后创建一个空项目与XCode和建设/运行到设备。XCode显示了一个窗口,询问如下内容:是否接受开发人员证书。我按了“一直”。只有在这一步之后,我才摆脱了消息“匹配此配置文件的有效签名身份无法在您的钥匙链中找到”在组织者。

其他回答

以下是我所做的。

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,然后重新选择一个有效的配置文件将使它直。

我解出来了。 我不得不把。cer文件拖到KeyChain Access中。但请确保左上角的“Login”已被选中。否则,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

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

如果你有新的mac,你可以去 IOS开发中心->供应门户->证书->开发->撤销并创建新证书。我的问题解决了。我的错误是“代码签名错误:身份'iPhone开发人员'不匹配任何有效的,未过期的证书/私钥对在您的钥匙串”

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

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

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