我遇到了一个问题,无法通过在不同资源中进行深入搜索来解决,因为大多数“类似”指出 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)**
任何有关如何解决这种情况的帮助/反馈或想法将不胜感激。
在深入查看日志文件后,我找到了该问题的解决方案。
尽管我创建了自己的分发配置文件并为代码签名标识分配了开发人员证书的正确值,但它不起作用并给出错误:“应用程序失败了代码签名验证”。
问题出在以下行:
权限=iPhone 开发者:我的名字
(XXXXXXXXX)
尽管在分发配置文件的项目设置中选择正确,XCode 仍使用开发人员证书对其进行编译。
我终于解决了这个问题:右键单击“目标”->获取信息->,然后选择了(不要问我为什么)错误的分发证书而不是正确的分发证书。
我纠正了这一点,最后被接受了。
相关链接(您需要开发者帐户): https://devforums.apple.com/message/147964 https://devforums.apple.com/message/147964
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)