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

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


当前回答

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

其他回答

检查您的钥匙串,查找缺少私钥的身份。我为同一个团队安装了多个分发证书,其中一个缺少私钥。Xcode只检查密钥链中第一个匹配的标识,并自动使用这个标识,而不是包含私钥的标识。

删除没有私钥的匹配标识使Xcode再次检测到正确的标识。

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

对于那些应该继续使用不自动的原因

打开keyChain访问,看看是否有两个相同的认证,如果有两个或更多,只需删除到一个,它将工作:)

我为此挣扎了很多天。

步骤1: 删除所有证书,配置文件,appID,密钥等从开发帐户。

步骤2: 重新创建推送通知证书、配置文件、应用ID等。

步骤3: 从keychain中删除所有证书。

步骤4: 清除~/Library/MobileDevice/ provisioning Profiles中的所有配置文件。

步骤5: 只添加了所需的配置文件并进行了测试。它工作得很好。

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

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

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