应用程序加载器代码设计问题
我使用 Xcode 开发人员工具 4.2 中的 PackageApplication 脚本对我的应用程序进行签名和打包。当我从生成的 .ipa 文件验证生成的应用程序包时,它表示一切都有效。
$ codesign --verify -vvv MyApp.app/
MyApp.app/: valid on disk
MyApp.app/: satisfies its Designated Requirement
所以看起来不错。当我显示签名信息时,它看起来也不错。
$ codesign --display -vvv MyApp.app/
enter code hereExecutable=/Users/user/Desktop/MyApp.app/MyApp
Identifier=com.example.MyApp
Format=bundle with Mach-O universal (armv6 armv7)
CodeDirectory v=20100 size=8870 flags=0x0(none) hashes=435+5 location=embedded
Hash type=sha1 size=20
CDHash=e8fc1bf220542a49cf249a302df5d59fee8c7170
Signature size=4312
Authority=iPhone Distribution: My Name
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Oct 20, 2011 11:31:25 AM
Info.plist entries=37
Sealed Resources rules=3 files=1109
Internal requirements count=1 size=620
但是当我尝试使用应用程序加载器上传该应用程序时,它说
应用程序代码签名验证失败。签名无效,或者不是使用 iPhone 分发证书进行签名。
现在我完全迷失了! codesign 实用程序告诉我一切正常,但应用程序加载器告诉我签名无效?
I sign and package my apps with the PackageApplication script from the Xcode developer tools 4.2. When I validate the generated app bundle from the generated .ipa file, it says that everything is valid.
$ codesign --verify -vvv MyApp.app/
MyApp.app/: valid on disk
MyApp.app/: satisfies its Designated Requirement
So that looks good. And when I show the infos of the signature it looks well too.
$ codesign --display -vvv MyApp.app/
enter code hereExecutable=/Users/user/Desktop/MyApp.app/MyApp
Identifier=com.example.MyApp
Format=bundle with Mach-O universal (armv6 armv7)
CodeDirectory v=20100 size=8870 flags=0x0(none) hashes=435+5 location=embedded
Hash type=sha1 size=20
CDHash=e8fc1bf220542a49cf249a302df5d59fee8c7170
Signature size=4312
Authority=iPhone Distribution: My Name
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Oct 20, 2011 11:31:25 AM
Info.plist entries=37
Sealed Resources rules=3 files=1109
Internal requirements count=1 size=620
But as soon as I try to upload that app with the Application Loader, it says
Application failed code sign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate.
Now I'm completely lost! The codesign utility tells me that everything is ok, but the Application Loader tells me that the signature is not valid?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我仍然不知道出了什么问题。但创建新的配置文件并删除所有旧的配置文件就完成了这项工作。
I still have no idea what was wrong. But creating new profiles and deleting all old profiles did the job.