【问题标题】:Always 'Ad Hoc Code Signed' for Embedded Binary Signing Certificate始终为嵌入式二进制签名证书“​​签名即席代码”
【发布时间】:2015-07-17 17:28:40
【问题描述】:

我有两个目标,主要目标和扩展目标。现在,当我尝试归档应用程序时,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)

在这篇文章之前,我已经阅读了这些链接:

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_

感谢您的帮助。

【问题讨论】:

    标签: ios xcode code-signing provisioning-profile ios-extensions


    【解决方案1】:

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

    Xcode 很糟糕。

    【讨论】:

      【解决方案2】:

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

      问题与签名无关。我的答案是 将 $(ARCHS_STANDARD) 粘贴到项目有效架构字段中。 难以置信!

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

      【讨论】:

      • 这对我有用。我将 $(ARCHS_STANDARD) 设置为我所有目标的有效架构,并删除了所有其他选项,如 armv6、armv7。
      • 多么牛逼啊……同样的解决方案。
      【解决方案3】:

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

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

      【讨论】:

        【解决方案4】:

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

        【讨论】:

          【解决方案5】:

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

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

          该死的……

          【讨论】:

          • 这也是您将用于构建的任何证书的事实。谢谢杰森·李。
          • 我被困在这里两周了,你救了我很多。 Thakns @Jason Lee
          • 非常感谢!
          • 天啊,我在这里卡了两天,非常感谢!
          • 什么!!??!!! No.
          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-02-03
          • 1970-01-01
          • 2017-01-09
          • 2015-07-30
          • 2013-10-10
          • 2014-01-25
          相关资源
          最近更新 更多