当我存档我的应用时,我收到一些警告:应用程序无法进行代码验证。签名无效,或者未使用iPhone分发证书签名。 (-19011)
我在这里找到了对此错误的描述:link,但我没有解决此问题的任何想法。
所有个人资料和证书均有效。但是当我创建档案时,我得到了这个警告。当我使用应用程序加载器时,此警告也会显示(并且我的应用程序上传被拒绝)
感谢您的回复!
我的留言:
Validate /Users/user/Library/Developer/Xcode/DerivedData/Wine-gkolwcegooellmdpwekxnxzupkhu/ArchiveIntermediates/Wine/InstallationBuildProductsLocation/Applications/Wine.app
cd /Users/user/Desktop/Wine
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv PRODUCT_TYPE com.apple.product-type.application
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/user/Library/Developer/Xcode/DerivedData/Wine-gkolwcegooellmdpwekxnxzupkhu/ArchiveIntermediates/Wine/InstallationBuildProductsLocation/Applications/Wine.app
2012-01-16 02:11:14.491 Validation[3263:607] *** Warning: Defaulting to the standard codesign tool
warning: Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)
/Users/user/Library/Developer/Xcode/DerivedData/Wine-gkolwcegooellmdpwekxnxzupkhu/ArchiveIntermediates/Wine/InstallationBuildProductsLocation/Applications/Wine.app: valid on disk
/Users/user/Library/Developer/Xcode/DerivedData/Wine-gkolwcegooellmdpwekxnxzupkhu/ArchiveIntermediates/Wine/InstallationBuildProductsLocation/Applications/Wine.app: satisfies its Designated Requirement
test-requirement: failed to satisfy code requirement(s)
- (null)
答案 0 :(得分:0)
在这些情况下,最快的方法是删除所有证书,配置文件等,然后重新开始。通过钥匙串访问生成CSR,获取开发人员证书,以及生成/下载您的配置文件(不要忘记您的分发配置文件)。
之后打开配置文件以使其进入组织者。然后进入目标的构建设置并设置正确的代码签名标识值。
组织者应在您添加配置文件后告诉您配置文件是否有任何问题。