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

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


当前回答

I haven't seen this mentioned yet but if you are still having issues after recreating your provisioning profiles, deleting the existing ones you have in your Provision Profiles folder, checking for dupes in your Keychain, etc (all other answers ITT), open your Target > Build Settings > Code Signing and make sure everything looks consistent in there. For example, I had changed the Code Signing Identify for Debug to a Distribution identity, which obviously wouldn't work as the Development Provisioning Profile doesn't have the Distribution certificate and was causing the error in the first place.

其他回答

我为此挣扎了很多天。

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

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

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

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

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

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

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

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

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

我也有同样的问题。 我换了mac。当我下载Xcode证书时,我收到了一条错误消息:“错误是安全配置文件不包括证书签名。”

1)登录https://developer.apple.com/account/ios/profile/limited/edit Select the project => edit => Certificates => Select All => Create => Download

2)在Xcode中:项目文件=>签名(调试)=>配置文件=>导入文件=>选择带1的文件

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

构建设置->签名:

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