简体   繁体   English

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

[英]Code signing Error: Application failed codesign verification Xcode Archive

I have an iPhone application that has no errors and my app was Archiving normally then I ran into a problem validating my app im receiving the message “No identities are available for signing”. 我有一个没有错误的iPhone应用程序,并且我的应用程序正在正常存档,然后在收到消息“没有身份可用于签名”时验证我的应用程序时遇到问题。

So one question on Stack told me to download my Distribution Certificate and drag it into my app. 因此,Stack上的一个问题告诉我下载我的发行证书并将其拖到我的应用程序中。 I did that then I got the following error. 我这样做了,然后收到以下错误。

I deleted the file out my project it runs fine but when I archive my app I get a warning. 我从项目中删除了文件,它运行正常,但是当我存档应用程序时,出现警告。 I have tried a number of things to no avail. 我尝试了很多方法都没有用。

(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

Delete your Provisioning Profile in your iPhone Configuration Utility and Download the new one and add to your library. iPhone Configuration Utility删除您的Provisioning Profile ,然后下载新的iPhone Configuration Utility Provisioning Profile并添加到您的资料库中。 You have to go to Keychain Access -> Preferences and select Best Attempt or Off your following two things: 您必须转到“ Keychain Access -> Preferences然后选择“ 最佳尝试”或“ 关闭”以下两项:

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

Check this answer for reference 检查此答案以供参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM