7

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

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

4 回答 4

5

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

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

从那里,确保您在 App Build Settings 和 Target Build Settings 中选择了正确的分发配置文件。有时这些会由于某种原因不同步。

于 2012-08-29T14:24:14.960 回答
3

检查目标(而不仅仅是项目)是否设置了正确的代码签名身份以进行发布

于 2013-05-13T17:21:32.020 回答
3

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

于 2013-05-21T05:42:57.777 回答
0

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

于 2013-05-18T23:43:31.800 回答