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

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


当前回答

Xcode 11

这是我得到的错误

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

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

你只需要

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

其他回答

值得注意的是,自动签名每次都失败了,直到我手动删除了本地配置文件: ~ /图书馆/ MobileDevice /配置概要文件

在这之后,自动签名工作得很好,它从苹果服务器上获得了正确的配置文件。

这只影响了一些构建,特别是那些我手动为手表应用程序创建配置文件的构建。

Delete the developer certificate that does not have a private key. Delete the provisioning profile from your machine using go to folder (~/Library/MobileDevice/Provisioning Profiles) Then first check then uncheck the Automatically manage signing option in the project settings with selecting team. Sing in Apple developer account and edit the provisioning profile selecting all available developer certificates then download and add to XCODE. Select the provisioning profile and code signing identity in project build settings

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

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

我也有同样的问题,原因是佩妮。在生成设置中选择了错误的配置文件和证书。我几天前才这么做过。所以,你不需要在xcode中启用“automatic”。在执行此操作之前,请检查构建设置中的配置文件。

我在最近将Xcode更新到9.3版本后遇到了这个问题 问题是在代码签名(在调试下)证书被设置为分发证书而不是开发证书,所以这阻止了我在我的设备上安装应用程序。

以下是我解决这个问题的方法。

项目->目标->选择你的应用程序->构建设置->代码签名身份->调试->双击“iPhone Distribution”并将其更改为“iPhone Developer”。