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

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


当前回答

我收到了苹果公司的一封邮件:

Dear John Doe, The following certificate has either been revoked by a member of your development team or has expired: Certificate: iOS Development Team Name: Honey Team, LLC This does not affect apps that you've submitted to the App Store or your ability to update your apps. If you're using provisioning profiles that contain this certificate, they must be recreated before they can be reused. For details, see the "App signing overview" section of Xcode Help. Best regards, Apple Developer Program Support


我创建了一个新证书,撤销了之前的证书(在本地和任何其他开发人员的mac上)。为了让它工作,我必须下载新的配置文件。

解决方案是:

登录到苹果开发者帐户 删除/撤销以前以我的名字创建的证书。 将新的证书添加到供应配置文件中。您可以根据有效期来识别较新的 再次从Xcode下载。下载所有配置文件 重启Xcode

我个人没有这样的机会。这种访问权限只对我们团队的管理员开放,因此我没有截图,也不确定这些步骤是否100%正确。

其他回答

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

“启用自动签名”,然后从下拉菜单中选择一个团队,帮助我解决了这个问题。

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

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

这意味着你需要做以下任何一件事:

你应该已经在开发者中心创建了一个证书,然后将该证书包含在配置文件中,然后导入到XCode中。 否则,如果您使用的证书是由其他人创建的,那么让他们共享/导出他们的证书和私钥(。P12文件)给你,你需要包括这个到你的钥匙链。请参考这里

当您无法从创建者那里获得证书& .p12文件时,#2的解决方案是选中“自动管理签名”选项。

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

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

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

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

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