应用程序加载器代码设计问题

发布于 2024-12-11 00:03:16 字数 1085 浏览 0 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

樱桃奶球 2024-12-18 00:03:16

我仍然不知道出了什么问题。但创建新的配置文件并删除所有旧的配置文件就完成了这项工作。

I still have no idea what was wrong. But creating new profiles and deleting all old profiles did the job.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文