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

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


当前回答

因为我还没有看到这个具体的答案:

我的问题是我需要手动签名。所以我的错误是在构建设置->代码签名->代码签名标识

我有我的调试(自动签名风格,和苹果开发证书),分期和发布(手动和苹果分发(adHoc)变种设置正确。

我没有正确设置(由于我理解中的一些有缺陷的逻辑)是“任何IOS SDK”的值。一旦我将其设置为相同的手动Apple Distribution证书,错误就消失了。

最初我把它设置为自动值“iOS分布”,因为我认为它会更好地自动处理,因为我不知道它是什么意思。还是不要。哦,希望能有所帮助

其他回答

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

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

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.

我有我撤销的证书的剩余私钥,证书没有了,但私钥没有。删除它们就解决了问题。

要找到他们:

打开钥匙串访问 点击左侧菜单类别下的“键” 寻找未绑定证书的iOS Developer:…"密钥 我删除了它们,问题就解决了

图中高亮显示的密钥是一个没有证书的样例私钥。

以下是为我解决的步骤(对于那些在XCode 9.2中面临相同问题的人):

刚刚手动删除了~/Library/MobileDevice/Provisioning profiles中的本地配置文件。 删除并创建了开发人员帐户中的所有证书和配置配置文件。 从Xcode中删除了开发者帐户,并重新添加了它。

解决了我的问题!: -)