如何解决“应用程序协同设计验证失败"上传到 iTunes Connect 时? [英] How to solve "Application failed codesign verification" when uploading to iTunes Connect?

查看:24
本文介绍了如何解决“应用程序协同设计验证失败"上传到 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 的正确大小和格式.
  • 还有其他一些事情.
  • 运行 codesign --verify -vvvv MyApp.app 运行良好.
  • 我的 ZIP 文件已正确完成

当我尝试通过 iTunes 连接界面上传时,我遇到了上面的简单错误,这就是我尝试使用 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天全站免登陆