始终为嵌入式二进制签名证书签署'Ad Hoc Code'

时间:2015-05-07 08:43:42

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

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

enter image description here

enter image description here

或如下设置:

enter image description here

他们都失败了。无论我如何更改代码签名设置,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_

感谢您的帮助。

5 个答案:

答案 0 :(得分:37)

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

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

血腥的......

答案 1 :(得分:5)

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

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

答案 2 :(得分:2)

I had the same issue while working with shared extensions. Even after editing the AWDRC certificate I kept on getting the same error on Xcode 7. However once I upgraded to Xcode 7.2 the problem was solved.

答案 3 :(得分:1)

在为iOS Simulator进行构建时遇到了这个问题(对于设备来说,一切正常。) 这对我有所帮助,尽管没有SO答案:

  

该问题与签名无关。对我来说答案是   将$(ARCHS_STANDARD)粘贴到项目有效架构字段中。   不可思议!

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

答案 4 :(得分:0)

对我来说,这是因为我在Computer B上进行了一个安装,并在Computer A上使用了Xcode,并要求我吊销证书。我不知道如何在{{1}}上将其撤消,并用Google搜索了3个小时,直到尝试退出并重新打开Xcode。它立即要求我吊销证书,并且一切都重新开始。

Xcode太糟糕了。