如何解决“应用程序失败的代码签名验证";上载到iTunes Connect时? [英] How to solve "Application failed codesign verification" when uploading to iTunes Connect?

查看:121
本文介绍了如何解决“应用程序失败的代码签名验证";上载到iTunes Connect时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题,我无法通过在不同资源中进行深入搜索来解决,因为大多数相似"指出是Icon.png大小等错误...

I've got a problem that I couldn't solve with a deep search in different resources as most of the "similar" points out to be an error with Icon.png size, etc...

在验证之后,我尝试上载我的应用程序:

I've tried to upload my application after verifying that:

  • 正确构建并在我的设备上运行
  • 我的证书已正确安装
  • 我的证书/配置文件没有过期.
  • Icon.png具有57x57 PNG的正确大小和格式.
  • 还有其他几件事.
  • Ran代码签名--verify -vvvv MyApp.app效果很好.
  • 我的ZIP文件已正确完成

当我尝试通过iTunes connect接口上载时,出现了上面的简单错误,这就是为什么我尝试使用ApplicationLoader来尝试找出导致错误的原因所在(参见控制台).

When I've tried to upload through the iTunes connect interface I got the simple error above, and that's why I tried with ApplicationLoader, to try and find out what's causing the error looking at the console.

控制台显示以下内容:

16/02/10 13:25:52   ApplicationLoader[549]  *** Codesign error (please ignore invalid option comments): got requirements(0x800000, 534)
Executable=/var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app/MyApp
Identifier=com.realtimed.MyApp
Format=bundle with Mach-O thin (armv6)
CodeDirectory v=20100 size=829 flags=0x0(none) hashes=33+5 location=embedded
Signature size=4333
Authority=iPhone Developer: My Name (XXXXXXXXX)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=16/02/2010 13:22:24
Info.plist entries=17
Sealed Resources rules=3 files=28
Internal requirements count=1 size=144

Executable=/var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app/MyApp
got entitlements(0x800400, 317)
codesign_wrapper-0.7.3: using Apple CA for profile evaluation
codesign_wrapper-0.7.3: Caling codesign with the following args:
codesign_wrapper-0.7.3:    /usr/bin/codesign
codesign_wrapper-0.7.3:    --verify
codesign_wrapper-0.7.3:    -vvvv
codesign_wrapper-0.7.3:    -R=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and certificate leaf[field.1.2.840.113635.100.6.1.4] exists
codesign_wrapper-0.7.3:    --entitlements
codesign_wrapper-0.7.3:    /var/tmp/signingbox/codesign_wrapper_entitlements.plist
codesign_wrapper-0.7.3:    /var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app
**/var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app: valid on disk
/var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app: satisfies its Designated Requirement
test-requirement: failed to satisfy code requirement(s)
codesign_wrapper-0.7.3: failed to execute codesign(1)**

对于解决问题的任何帮助/反馈或想法,我们将不胜感激.

Any help / feedback or ideas on how to solve the situation would be highly appreciated.

推荐答案

在深入查看日志文件后,我找到了解决此问题的方法.

I found the solution to this problem after deeply looking at the log file.

尽管我创建了自己的分发配置文件,并为开发人员证书分配了正确的值给代码签名身份,但是它没有起作用,并给我一个错误:应用程序代码签名验证失败".

Although I created my own Distribution Profile and assigned to the CODE SIGNING IDENTITY the correct value for the developer certificate, it didn't work giving me an error: "Application failed codesign verification".

问题在以下行:

Authority = iPhone开发人员:我的名字 (XXXXXXXXX)

Authority=iPhone Developer: My Name (XXXXXXXXX)

尽管在分发设置配置文件的项目设置中进行了正确选择,但XCode仍使用开发人员证书对其进行了编译.

Despite the correct selection in the project settings for the Distribution profile, XCode was compiling it with the developer certificate.

我终于解决了它:右键单击目标"->获取信息"->,然后选择了(不要问我为什么)错误的分发证书,而不是正确的分发证书.

I finally solved it: Right click on the "Targets" -> Get info -> and there it was selected (don't ask me why) the wrong distribution certificate instead of the right one.

我纠正了这一点,最终被接受了.

I corrected that and it finally was accepted.

相关链接(您需要开发者帐户): https://devforums .apple.com/message/147964

这篇关于如何解决“应用程序失败的代码签名验证";上载到iTunes Connect时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆