Xcode 8显示配置配置文件不包含签名证书的错误。

此问题仅适用于Xcode-8和Xcode 7,相同的配置文件显示相关已识别的证书。


当前回答

对我来说,以上的解决方案都没用。我从两个旧的mac迁移到一个新的mac,试图让发布/调试配置文件在Xcode上工作,而不需要Xcode自动管理它们。

我的解决方案是,当我创建两个新的证书时,我还必须进入我的配置配置文件,并将新证书添加到配置配置文件中,以便识别它们。下载完成后,xcode删除了所有错误,一切就绪。

希望这能帮助到一些人!

其他回答

I haven't seen this mentioned yet but if you are still having issues after recreating your provisioning profiles, deleting the existing ones you have in your Provision Profiles folder, checking for dupes in your Keychain, etc (all other answers ITT), open your Target > Build Settings > Code Signing and make sure everything looks consistent in there. For example, I had changed the Code Signing Identify for Debug to a Distribution identity, which obviously wouldn't work as the Development Provisioning Profile doesn't have the Distribution certificate and was causing the error in the first place.

这可能对你有帮助

iOS分发配置

场景:

另一个开发人员给了我一个证书。

我简单地安装了这个

错误:

Xcode 8显示配置配置文件不包含签名证书的错误

这不是完全正确的错误。

错误是私钥丢失

Preference -> Accounts ->双击team

呼叫开发人员发送私钥。

并将其安装到本地

第二个解决方案

创建新的证书。 编辑现有的配置配置文件 包括新证书 保存及下载

尝试直接从会员中心下载证书/配置文件,而不是从Xcode下载。

当我从会员中心手动下载它们时,它为我工作了。

在我的情况下,在钥匙串我有两个证书同名,我删除了其中一个证书是重复的,然后它解决了这个问题。

对于那些仍然在Xcode8中与这个问题作斗争的人。对于我来说,这是一个重复的证书问题,这是我解决它的方法:

我读了尼克的回答,然后开始了我的调查。我检查了我的特定案例中的所有密钥和证书(在~/Library/Keychains/System.keychain中)。

When I opened the file, I found that I had two iPhone Distribution Certificates (that was the certificate that Xcode was requesting me), one with the iOS Distribution private key that I have been using since the beginning, and another iPhone Distribution Certificate which its private Key had a name (iOS Distribution:NAME) that wasn´t familiar for me. I deleted this last certificate, started Xcode again and the problem was gone. xCode wasn´t able to resolve that conflict and that´s why it was giving signing certificate error all the time.

检查你的钥匙链,也许你有一个重复的证书。