xcode 应用程序未通过协同设计验证。(-19011)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9943780/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Application failed codesign verification. (-19011)
提问by user1123001
For a few days Im being stuck at this problem, I've tried to delete/clean all the keys/certification and redownload them, I've tried to remove all provision profiles and revoke them and renew them. But every time I'm getting this problem.
几天来,我一直被这个问题困住,我尝试删除/清理所有密钥/证书并重新下载它们,我尝试删除所有配置文件并撤销它们并更新它们。但是每次我都遇到这个问题。
Im running the latest Xcode, 4.3.2.
我正在运行最新的 Xcode,4.3.2。
warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)"
Validate /Users/jimmylind91/Library/Developer/Xcode/DerivedData/JagHarAldrig-bkpyqdmptyxcntauxwsbrsqbmlji/Build/Intermediates/ArchiveIntermediates/JagHarAldrig/IntermediateBuildFilesPath/UninstalledProducts/JagHarAldrig.app cd "/Users/jimmylind91/Documents/xCode/Jag Har Aldrig" 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/jimmylind91/Library/Developer/Xcode/DerivedData/JagHarAldrig-bkpyqdmptyxcntauxwsbrsqbmlji/Build/Intermediates/ArchiveIntermediates/JagHarAldrig/IntermediateBuildFilesPath/UninstalledProducts/JagHarAldrig.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/jimmylind91/Library/Developer/Xcode/DerivedData/JagHarAldrig-bkpyqdmptyxcntauxwsbrsqbmlji/Build/Intermediates/ArchiveIntermediates/JagHarAldrig/IntermediateBuildFilesPath/UninstalledProducts/JagHarAldrig.app/JagHarAldrig codesign_wrapper-0.7.10: using Apple CA for profile evaluation /Users/jimmylind91/Library/Developer/Xcode/DerivedData/JagHarAldrig-bkpyqdmptyxcntauxwsbrsqbmlji/Build/Intermediates/ArchiveIntermediates/JagHarAldrig/IntermediateBuildFilesPath/UninstalledProducts/JagHarAldrig.app: valid on disk /Users/jimmylind91/Library/Developer/Xcode/DerivedData/JagHarAldrig-bkpyqdmptyxcntauxwsbrsqbmlji/Build/Intermediates/ArchiveIntermediates/JagHarAldrig/IntermediateBuildFilesPath/UninstalledProducts/JagHarAldrig.app: satisfies its Designated Requirement test-requirement: code failed to satisfy specified code requirement(s) codesign_wrapper-0.7.10: failed to execute codesign(1) - (null)
警告:应用程序未通过协同设计验证。签名无效,包含不允许的权利,或者未使用 iPhone 分发证书签名。(-19011)"
验证 /Users/jimmylind91/Library/Developer/Xcode/DerivedData/JagHarAldrig-bkpyqdmptyxcntauxwsbrsqbmlji/Build/Intermediates/ArchiveIntermediates/JagHarAldrig/IntermediateBuildFilesPath/UninstalledProducts/JagHarAldrig/JagHarAldrig/JagHarAldrig/JagHarAldrig/JagHarAldrig/JagHarAldrig/JagHarAldrig / "/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/jimmylind91/Library/Developer/Xcode/DerivedData/JagHarAldrig-bkpyqdmptyxcntauxwsbrsqbmlji/Build/Intermediates/ArchiveIntermediates/JagHarAldrig/IntermediateBuildFilesPath/UninstalledAlgapp
警告:应用程序未通过协同设计验证。签名无效,包含不允许的权利,或者未使用 iPhone 分发证书签名。(-19011) Executable=/Users/jimmylind91/Library/Developer/Xcode/DerivedData/JagHarAldrig-bkpyqdmptyxcntauxwsbrsqbmlji/Build/Intermediates/ArchiveIntermediates/JagHarAldrig/IntermediateBuildFilesPath/Uninstalled0.Alrigd.Apps.配置文件评估/Users/jimmylind91/Library/Developer/Xcode/DerivedData/JagHarAldrig-bkpyqdmptyxcntauxwsbrsqbmlji/Build/Intermediates/ArchiveIntermediates/JagHarAldrig/IntermediateBuildFilesPath/UninstalledProducts/JagHarAldrig.app:
采纳答案by clickngo
make sure that you have setup the distribution provisioning profile under your provisioning portal!
确保您已在配置门户下设置分发配置文件!
create new profile....download its and set it up...
创建新的配置文件....下载并设置它...
that will fix your problem i hope. greats from switzerland Oliver
我希望这会解决你的问题。来自瑞士的伟人 Oliver
回答by dre1138
I too got the "Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)". I recently updated to Xcode 4.5.1.
我也收到了“应用程序未能通过代码验证。签名无效,包含不允许的权利,或者它没有使用 iPhone 分发证书签名。(-19011)”。我最近更新到 Xcode 4.5.1。
In my case the solution was to go to my target's build settings and under "Build Options" change the "Validate Build Product" settings. I changed "Debug" from "Yes" to "No".
就我而言,解决方案是转到目标的构建设置,然后在“构建选项”下更改“验证构建产品”设置。我将“调试”从“是”更改为“否”。
回答by TouchMint
Just read on sdk forums it has to do with length of product name.
只需在 sdk 论坛上阅读它与产品名称的长度有关。
"All that I needed to do to sort this out was change the PRODUCT NAME in Build Settings to something shorter. Also make sure that in the info.plist the bundle name either reads from ProductName or is also short – it can be 3 characters since the bundle display name is the one that appears to users!" - Zuningo from sdk forum.
“我需要做的就是将 Build Settings 中的 PRODUCT NAME 更改为更短的内容。还要确保在 info.plist 中,bundle 名称要么从 ProductName 读取,要么也很短——它可以是 3 个字符,因为捆绑显示名称是向用户显示的名称!” - 来自 SDK 论坛的 Zuningo。
回答by alpere
Downloading Distribution Certificate (not the provisioning certificate) from iOS Provisioning Portal and installing it fixed the problem.
从 iOS Provisioning Portal 下载分发证书(不是配置证书)并安装它解决了这个问题。
回答by gerram
I have three configurations: Debug; Release; Distribution. I had such problem and didn't understand what to do. I used a decision from user dre1138and modernized it some. In TARGETS->myapp->Build Options->Validate Built Product I turned off Debug and Release in "No" and turn on Distribution in "Yes". Problem was decided.
我有三种配置:调试;释放; 分配。我遇到了这样的问题,不知道该怎么做。我使用了用户dre1138的决定并对其进行了一些现代化改造。在 TARGETS->myapp->Build Options->Validate Built Product 中,我在“否”中关闭了调试和发布,并在“是”中打开了分发。问题决定了。
回答by DenNukem
I had to do two things:
我必须做两件事:
Delete expired certificates in Keychain Access. By default they are not shown, you have to enable it in the menu.
Tick the checkbox "Entitlements [x] Use Entitlements File: " on the "Summary" Tab of the Target properties.
删除钥匙串访问中的过期证书。默认情况下它们不显示,您必须在菜单中启用它。
在 Target 属性的“Summary”选项卡上勾选“Entitlements [x] Use Entitlements File:”复选框。