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

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


当前回答

Xcode 11

这是我得到的错误

配置文件“XXX”不包含签名证书“Apple Development: XXX (XXX)”。

现在Xcode 11自动创建了一个证书“Apple Development: XXX”,该证书对所有平台都有效

你只需要

访问https://developer.apple.com 转到配置配置文件 检查是否已选择此证书

其他回答

此问题是由于您的配置文件中的证书中的私钥与您的密钥链中的私钥不匹配。我解决这个问题的方法是

delete all iPhone Developer certificate in keychain. delete all certificate in apple account. using xcode "Manage Certificates" to add certificate, sometime you still have certificate in your Mac, but I do not know where it is for now, and if added successfully, your apple account will display that certificate too, and then you can create your profile with that certificate and download ... goto 5 if you use "Manage Certificates" can't add certificate, you can create a new certificate, and do remain steps. finish.

Xcode版本8的代码签名问题也是如此。

我有我撤销的证书的剩余私钥,证书没有了,但私钥没有。删除它们就解决了问题。

要找到他们:

打开钥匙串访问 点击左侧菜单类别下的“键” 寻找未绑定证书的iOS Developer:…"密钥 我删除了它们,问题就解决了

图中高亮显示的密钥是一个没有证书的样例私钥。

对于那些仍然在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.

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

我也有同样的问题。 我换了mac。当我下载Xcode证书时,我收到了一条错误消息:“错误是安全配置文件不包括证书签名。”

1)登录https://developer.apple.com/account/ios/profile/limited/edit Select the project => edit => Certificates => Select All => Create => Download

2)在Xcode中:项目文件=>签名(调试)=>配置文件=>导入文件=>选择带1的文件

出现这种情况是因为配置配置文件无法找到它所链接的证书的文件。

修复:

检查哪个证书链接到您的配置配置文件 在Apple Developer仪表板的Certificates, Identifiers & Profiles部分点击编辑你的配置文件 从仪表板下载证书 双击该文件将其安装到您的钥匙链中 将文件拖到Xcode中以确保它是链接的

错误现在应该消失了。