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

前端之家收集整理的这篇文章主要介绍了ios – 应用程序验证失败.签名无效,包含不允许的权利前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我尝试为我的应用程序制作存档时,我成功了,但有一个奇怪的警告:
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,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后,我一直看到这个警告,请帮忙:)

解决方法

看起来您可能需要从sim / device中删除,从Xcode中清除并重建.你试过这个吗?

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

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

猜你在找的iOS相关文章