代码签名错误:应用程序失败,代码签名验证Xcode存档

时间:2013-02-28 20:50:27

标签: iphone ios objective-c xcode xcode4

我有一个没有错误的iPhone应用程序,我的应用程序正常存档然后我遇到问题验证我的应用程序即时收到消息“没有可用于签名的身份”。

因此Stack上的一个问题告诉我下载我的分发证书并将其拖入我的应用程序。我这样做然后我得到以下错误。

我删除了文件,我的项目运行正常但是当我存档我的应​​用程序时,我收到警告。我尝试了很多事情都无济于事。

(null):  Application failed codesign verification.  The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011) 


Validate /Users/blakeloizides/Library/Developer/Xcode/DerivedData/Novolam-gwqochjjqgryxnedazbaosfjksmz/Build/Intermediates/ArchiveIntermediates/Novolam/InstallationBuildProductsLocation/Applications/Novolam.app
    cd /Users/blakeloizides/NETNRG/Novolam
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    setenv PRODUCT_TYPE com.apple.product-type.application
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/blakeloizides/Library/Developer/Xcode/DerivedData/Novolam-gwqochjjqgryxnedazbaosfjksmz/Build/Intermediates/ArchiveIntermediates/Novolam/InstallationBuildProductsLocation/Applications/Novolam.app

warning: Application failed codesign verification.  The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)Executable=/Users/blakeloizides/Library/Developer/Xcode/DerivedData/Novolam-gwqochjjqgryxnedazbaosfjksmz/Build/Intermediates/ArchiveIntermediates/Novolam/InstallationBuildProductsLocation/Applications/Novolam.app/Novolamcodesign_wrapper-4.1: using Apple CA for profile evaluation/Users/blakeloizides/Library/Developer/Xcode/DerivedData/Novolam-gwqochjjqgryxnedazbaosfjksmz/Build/Intermediates/ArchiveIntermediates/Novolam/InstallationBuildProductsLocation/Applications/Novolam.app: valid on disk/Users/blakeloizides/Library/Developer/Xcode/DerivedData/Novolam-gwqochjjqgryxnedazbaosfjksmz/Build/Intermediates/ArchiveIntermediates/Novolam/InstallationBuildProductsLocation/Applications/Novolam.app: satisfies its Designated Requirementtest-requirement: code failed to satisfy specified code requirement(s)codesign_wrapper-4.1: failed to execute codesign(1) - (null

1 个答案:

答案 0 :(得分:0)

删除Provisioning Profile中的iPhone Configuration Utility并下载新版本,然后添加到您的资源库中。您必须转到Keychain Access -> Preferences并选择最佳尝试关闭以下两项内容:

 1. Online Certificate Status Protocol (OCSP)
 2. Certificate Revocation List (CRL)

检查reference

的答案