我使用
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
但是,只要我尝试使用Application Loader上传该应用程序,它就会说
Application Failed code sign verification. The signature was invalid,or it was not signed with an iPhone Distribution Certificate.
现在我完全失去了! codesign实用程序告诉我一切正常,但Application Loader告诉我签名无效?