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

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


当前回答

如果你使用手动签名(我非常鼓励),这个错误可能会发生,因为Xcode认为它应该用开发人员证书来签署发布版本,而这显然不包括在发布配置文件中。

有一个生成设置定义了哪个证书应该用于哪个生成配置。要更改它,请转到构建设置并搜索代码签名标识。当展开时,每个构建配置(通常是调试和发布)都应该有单独的行,第二列是其选择的标识(通常是iOS Developer或iOS Distribution)。确保为每个构建配置设置了正确的标识。

在某些情况下,还可以扩展构建配置。确保它的子项也被设置为正确的标识。

其他回答

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

修复:

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

错误现在应该消失了。

Xcode 11

这是我得到的错误

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

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

你只需要

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

我尝试了很多方法,但唯一解决这个问题的方法是在xcode中配置一些东西:

构建设置->签名:

代码签名标识:所有选项均选择iOS Developer。 代码签名风格:自动 配置文件:自动

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下载。

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