如何解决“应用程序协同设计验证失败”的问题当上传到 iTunes Connect 时?
我遇到了一个问题,无法通过在不同资源中进行深入搜索来解决,因为大多数“类似”指出 Icon.png 大小等错误...
我尝试上传我的应用程序验证后:
- 在我的设备上正确构建并运行
- 我的证书已正确安装
- 我的证书/配置文件未过期。
- Icon.png 具有 57x57 PNG 的正确尺寸和格式。
- 还有其他几件事。
- 运行 codesign --verify -vvvv MyApp.app 效果很好。
- 我的 ZIP 文件已正确完成
当我尝试通过 iTunes 连接界面上传时,我收到了上面的简单错误,这就是我尝试使用 ApplicationLoader 的原因,试图通过查看控制台找出导致错误的原因。
控制台显示以下内容:
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)**
任何有关如何解决该情况的帮助/反馈或想法将不胜感激。
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:
- Correctly builds and run on my device
- That my certificates are installed properly
- That my certs / profiles are not expired.
- That the Icon.png has the proper size and format of 57x57 PNG.
- And several other things.
- Ran codesign --verify -vvvv MyApp.app which worked fine.
- My ZIP File was properly done
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.
The console showed the following:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在深入查看日志文件后,我找到了该问题的解决方案。
尽管我创建了自己的分发配置文件,并为代码签名标识分配了开发人员证书的正确值,但它不起作用,并出现错误:“应用程序失败了代码签名验证”。
问题出在以下行:
尽管在分发配置文件的项目设置中选择正确,XCode 仍使用开发人员证书对其进行编译。
我终于解决了:右键单击“目标”->获取信息->并在那里选择了(不要问我为什么)错误的分发证书而不是正确的分发证书。
我纠正了这一点,最后被接受了。
相关链接(您需要一个开发者帐户): https://devforums.apple。 com/message/147964
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".
The problem is at the following line:
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.
Related links (you need a developer account): https://devforums.apple.com/message/147964
优秀的帖子。我也遇到了这个麻烦,经过一番头痛之后,我意识到应该检查项目和目标是否使用正确的代码签名身份。不知何故,Xcode 恢复为开发人员配置文件而不是分发配置文件。它甚至在我故意选择正确的构建后就这样做了!
I. 为了安全起见,首先执行以下操作:
二.然后检查项目是否有正确的配置文件:
Project Settings >构建选项卡>代码签名身份
III。现在检查目标:
Target >获取信息>构建选项卡>代码签名身份
IV。交叉手指,希望你再也不会看到那个该死的黄色小三角形了。
Excellent post. I too was having this trouble and after much headache realized that both the Project AND the Target should be checked for using the correct Code Signing Identity. Somehow Xcode was reverting back to the Developer Provisioning Profile instead of the Distribution Provisioning Profile. It even did so on a build right after I had deliberately selected the correct one!
I. To be safe, first do the following:
II. Then check the Project for the correct Provisioning Profile:
Project Settings > Build Tab > Code Signing Identity
III. Now check the Target:
Target > Get Info > Build Tab > Code Signing Identity
IV. Cross fingers and hope you never see that blasted little yellow triangle again.
Cy 采取了正确的方法来解决此问题 - 当“应用程序协同设计验证失败” 是构建警告时,请在构建日志中展开该项目并扫描根本原因签名验证失败。
在 Cy. 的原始帖子中,您会发现根本问题是“测试要求:未能满足代码要求”,根据我的经验,这几乎总是引起的使用错误的证书(即 iPhone 开发人员配置文件而不是 iPhone 分发版)进行签名。
根本原因并不总是一个明显的解释,但至少应该通过其他搜索术语或故障排除想法来指导您。
对于在 Xcode 存档验证或提交期间遇到“应用程序协同设计验证失败”的其他人,请查看“产品”>“应用程序”的构建日志。存档相同标题的构建警告的时间,并扩展该警告的根本原因。然后通过以下 URL 查看 Apple 的此错误潜在原因的完整列表 "如何解决错误:应用程序协同设计验证失败?"
Cy took the right approach for solving this problem - When "Application failed codesign verification" is a build warning, expand that item in the build log and scan for the root cause of the failed signature verification.
In the case of Cy.'s original post you'll see that the root issue was "test-requirement: failed to satisfy code requirement(s)", and in my experience this is almost always caused by signing with the wrong certificate i.e. an iPhone Developer profile instead of iPhone Distribution.
The root cause is not always an obvious explanation, but should guide you at least with additional search terms or troubleshooting ideas.
For others experiencing the "Application failed codesign verification" during Xcode Archive Validation or Submission, look to the build log at Product > Archive time for a build warning by the same title and expand that for the root cause. Then take a look at Apple's complete list of potential causes of this error at the following URL "How do I resolve the error: Application failed codesign verification?"
检查目标(而不仅仅是项目)是否设置了正确的代码签名身份以进行发布
Check that the TARGET (and not only the Project) is setup with the correct Code Signing Identity for Release