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

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


当前回答

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

修复:

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

错误现在应该消失了。

其他回答

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

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

我为此挣扎了很多天。

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

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

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

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

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

为了解决这个问题,

我只是在项目设置通用选项卡上启用了“自动管理签名”,在启用之前,我担心它可能会有一些副作用,但一旦我启用,它就为我工作了。

如果您尝试将应用程序上传到iTunes Connect(您的供应配置文件设置为分发),请转到项目设置->构建设置->代码签名。请确保将所有调试和发布选项设置为您的分发配置文件。

您还可以使用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,切换到新创建的配置文件,其名称您刚刚在命令回显中看到。

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