应用程序验证失败。签名无效,包含不允许的权利

时间:2012-05-22 16:36:07

标签: ios xcode4.3

当我尝试为我的应用程序制作存档时,我成功了,但有一个奇怪的警告:

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/Malek/Library/Developer/Xcode/DerivedData/Fontenay-sous-Bois-elmujlurzvtkqdctznqivfpchsfq/Build/Intermediates/ArchiveIntermediates/Fontenay-sous-Bois/InstallationBuildProductsLocation/Applications/Fontenay-sous-Bois.app/Fontenay-sous-Bois
AssertMacros: message,  file: /SourceCache/codesign_wrapper_Sim/Security-1245/codesign_wrapper/codesign_wrapper.c, line: 495
AssertMacros: profile,  file: /SourceCache/codesign_wrapper_Sim/Security-1245/codesign_wrapper/codesign_wrapper.c, line: 904
codesign_wrapper-0.7.10: Failed to load provision profile from: /Users/Malek/Library/Developer/Xcode/DerivedData/Fontenay-sous-Bois-elmujlurzvtkqdctznqivfpchsfq/Build/Intermediates/ArchiveIntermediates/Fontenay-sous-Bois/InstallationBuildProductsLocation/Applications/Fontenay-sous-Bois.app/embedded.mobileprovisi
 - (null)

当我使用Xcode 4.2时,一切都很顺利,但是自从我升级到Xcode 4.3后,我一直看到这个警告,请帮助:)

4 个答案:

答案 0 :(得分:5)

好像你可能需要从sim / device中删除,从Xcode中清除,然后重建。你试过这个吗?

如果是这样,请转到管理器,点击“项目”按钮,找到您的项目,然后点击按钮删除派生数据。

从那里,确保在App Build Settings和Target Build Settings中选择了正确的Distribution Profile。有时这些因某种原因而不同步。

答案 1 :(得分:3)

检查TARGET(而不仅仅是项目)是否设置了正确的发布代码签名标识

答案 2 :(得分:3)

还请确保您的代码未在未经授权的目录中。例如(在usb.etc中)

答案 3 :(得分:0)

确保选择“iOS设备”,而不是左上角的“模拟器”