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

Jas*_*Lee 11 xcode code-signing ios 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)
Run Code Online (Sandbox Code Playgroud)

所以我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_

谢谢你的帮助.

Jas*_*Lee 39

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

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

血腥的......


Par*_*tel 5

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

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


art*_*vin 5

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

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

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