xcode 对于嵌入式二进制签名证书,始终使用“临时代码签名”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30096022/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:06:48  来源:igfitidea点击:

Always 'Ad Hoc Code Signed' for Embedded Binary Signing Certificate

iosxcodecode-signingprovisioning-profileios-extensions

提问by Jason Lee

I have two targets, the main target & an extension target. Now when I'm trying to archive the app, Xcode failed with the following error:

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

So I checked the Build Settings - Code Signingagain and again to ensure Embedded binary is signed with the same certificate as the parent app,

所以我Build Settings - Code Signing一次又一次地检查以确保Embedded binary is signed with the same certificate as the parent app

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

Or settings like below :

或如下设置:

enter image description here

在此处输入图片说明

They all failed into the same reason. No matter how I change the Code Signing settings, the Embedded Binary Signing Certificateis always (Ad Hoc Code Signed).

他们都因为同样的原因失败了。无论我如何更改代码签名设置,Embedded Binary Signing Certificate始终是(Ad Hoc Code Signed).

Before this post, I've read these links:

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

Xcode6:Embedded binary is not signed with the same certificate as the parent app

Xcode6:嵌入式二进制文件未使用与父应用程序相同的证书进行签名

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/

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_

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_WITHENT_UND_THEAPPIERID

Thanks for any help.

谢谢你的帮助。

回答by Jason Lee

Believe it or not!!!!!!!!!!!!

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

It's the Apple Worldwide Developer Relations Certification Authority, if I choose always trust, Xcode archives failed. When I changed to system defaults, Xcode archives successfully.

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

Bloody h...

该死的...

回答by Paresh Patel

It's the Apple Worldwide Developer Relations Certification Authority issues. Here How to solve error step by step

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

  • Open Keychain Access
  • Select your certificate
  • Right click on certificate and click Get Info
  • Where you find option trust - When Using Certificate - Select Use System Defaults
  • 打开钥匙串访问
  • 选择您的证书
  • 右键单击证书,然后单击获取信息
  • 在哪里找到选项信任 - 使用证书时 - 选择使用系统默认值

回答by art-divin

I had this problem when building for iOS Simulator (for device everything was OK). This has helped me, while none of SO answers did:

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

The problem had nothing to do with the signing. The answer for me was to paste $(ARCHS_STANDARD) into the project valid architecture field. Incredible!

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

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

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

回答by Christo Kumar

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.

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