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

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


当前回答

您还可以使用Fastlane工具包解决代码签名问题。作者投入了大量精力来有效地自动化构建、签名iOS应用程序(等等)。

因此,在上述套件中,有一个工具sigh,它神奇地解决了任何签名问题,因此得名:)这里的好处是,这个工具封装了关于常见签名问题的知识,可以检测和解决大多数问题。

Fastlane安装为Ruby gem:

Gem安装fastlane

然后简单地引用:

快速的叹息——发展

回答两个问题,瞧:

[11:56:55]: No existing profiles found, that match the certificates you have installed locally! Creating a new provisioning profile for you
[11:57:01]: Creating new provisioning profile for 'com.myapp' with name 'com.myapp Development'
[11:57:06]: Downloading provisioning profile...
[11:57:09]: Successfully downloaded provisioning profile...
[11:57:09]: Installing provisioning profile...

最后,进入Build Settings -> Signing,切换到新创建的配置文件,其名称您刚刚在命令回显中看到。

此示例用于开发代码签名问题(在设备上运行)。查看所有其他选项的叹息文档。

其他回答

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

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

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

我取消勾选,然后勾选“自动管理签名”选项。这为我解决了问题。

这个问题似乎在Xcode 11开始出现。

去苹果开发者 找到正确的供应概要文件 单击右上角的“编辑” 在证书中选择(分发)选项。(我认为这是苹果公司引入的一种新的选项/证书类型,尽管我找不到任何文档) 可选:删除(~/Library/MobileDevice/Provisioning profiles /)中的所有配置文件 去Xcode ->首选项->帐户->下载手动配置

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

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