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