对于嵌入式二进制签名证书始终 'Ad Hoc Code Signed'

Always 'Ad Hoc Code Signed' for Embedded Binary Signing Certificate

我有两个目标,主要目标和扩展目标。现在,当我尝试存档应用程序时,Xcode 失败并出现以下错误:

error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.

        Embedded Binary Signing Certificate:    - (Ad Hoc Code Signed)
        Parent App Signing Certificate:     iPhone Distribution: ***. (EAA28CVMQM)

所以我检查了一遍又一遍Build Settings - Code Signing以确保Embedded binary is signed with the same certificate as the parent app,

或如下设置:

他们都因为同样的原因失败了。无论我如何更改代码签名设置,Embedded Binary Signing Certificate 始终是 (Ad Hoc Code Signed)

在此之前 post,我阅读了这些链接:

Xcode6:Embedded binary is not signed with the same certificate as the parent app

Embedded binary is not signed with the same certificate as the parent app yet they are identical

http://aplus.rs/2014/embedded-binary-is-not-signed-with-the-same-certificate-as-the-parent-app/

https://developer.apple.com/library/ios/technotes/tn2407/_index.html#//apple_ref/doc/uid/DTS40014991-CH1-VALIDATION_ERRORS-EMBEDDED_BINARY_S_BUNDLE_IDENTIFIER_IS_NOT_PREFIXED_WITH_THE_PARENT_APP_S_BUNDLE_IDENTIFIER_

感谢您的帮助。

信不信由你!!!!!!!!!!!!!

Apple Worldwide Developer Relations Certification Authority,如果我选择always trust,Xcode存档失败。当我改成system defaults时,Xcode存档成功。

该死的...

我在使用共享扩展时遇到了同样的问题。即使在编辑 AWDRC 证书后,我仍然在 Xcode 7 上遇到同样的错误。但是,一旦我升级到 Xcode 7.2,问题就解决了。

是苹果全球开发者关系认证机构的问题。 这里如何逐步解决错误

  • 打开钥匙串访问
  • Select 你的证书
  • 右键单击证书并单击“获取信息”
  • 在哪里可以找到信任选项 - 使用证书时 - Select 使用 系统默认值

我在为 iOS 模拟器构建时遇到了这个问题(对于设备,一切正常)。 这对我有帮助,而 none 的 SO 答案做到了:

The problem had nothing to do with the signing. The answer for me was to paste $(ARCHS_STANDARD) into the project valid architecture field. Incredible!

(c) https://forums.developer.apple.com/thread/107563

对我来说,这是因为我在 Computer A 上安装了一个,并在 Computer B 上使用了 Xcode,并要求我撤销证书。我不知道如何在 Computer A 上重新撤销它并在谷歌上搜索了 3 个小时,直到我尝试退出并重新打开 Xcode。它立即要求我吊销证书,一切都恢复正常了。

Xcode太糟糕了。