12

我有两个目标,主要目标和扩展目标。现在,当我尝试归档应用程序时,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:嵌入式二进制文件未使用与父应用程序相同的证书进行签名

嵌入式二进制文件未使用与父应用程序相同的证书进行签名,但它们是相同的

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_

谢谢你的帮助。

4

5 回答 5

40

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

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

该死的...

于 2015-05-08T09:21:43.973 回答
5

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

  • 打开钥匙串访问
  • 选择您的证书
  • 右键单击证书,然后单击获取信息
  • 在哪里找到选项信任 - 使用证书时 - 选择使用系统默认值
于 2017-02-03T11:31:06.580 回答
5

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

这个问题与签约无关。我的答案是将 $(ARCHS_STANDARD) 粘贴到项目有效架构字段中。极好的!

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

于 2018-12-28T16:42:03.047 回答
2

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

于 2016-05-17T11:21:05.130 回答
0

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

Xcode 很糟糕。

于 2020-06-29T12:42:34.037 回答