“权利具有配置文件不允许的价值”,但事实并非如此

时间:2012-03-27 16:33:47

标签: objective-c ios code-signing provisioning-profile entitlements

我正在尝试通过TestFlight安装AdHoc版本,但我遇到了一些奇怪的困难。下面是iOS下载二进制文件并开始安装后输出的控制台日志。关键问题是iOS说权利与移动处理数据不匹配,但是当我比较它们时,它们匹配。

我已经仔细检查了mobileprovision,entitlemtnts.plist中的所有值,甚至在生成的IPA中(解压缩并查看已编译的二进制文件),它们看起来都很好并且匹配。 embeded.mobileprovision具有与应用程序二进制文件中的权利值匹配的值(当IPA被解包并且二进制打开为文本时)。 错误中提到的每个值都出现在配置文件和权利中,并且值是匹配的。

我还尝试过清理项目,从设备删除所有配置文件,从设备删除应用程序,重新启动设备,在Dev Portal中删除配置文件以及创建新配置文件,以及Stackoverflow上提出的所有类似问题。现在没有任何帮助。

所以我的问题是:iOS如何知道这些值不匹配?因为已编译二进制文件中的值是嵌入式配置文件中的匹配值。

我提到我使用Testflight来分发AdHoc构建,因为Testflight会自动验证应用程序二进制文件(权利和配置文件),当我上传不匹配值的二进制文件时,它会显示错误,如其FAQ部分here中所述, here

另一个奇怪的事情是,相同的错误连续出现次数(现在是5次,但我已经看过多达7次重复)。

有没有人遇到过类似的问题?

先谢谢,这是提到的控制台日志:

Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'com.apple.developer.ubiquity-kvstore-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Mar 27 17:58:21 unknown installd[138] <Error>: 00403000 verify_signer_identity: Could not copy validate signature: -402620394
Mar 27 17:58:21 unknown installd[138] <Error>: 00403000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.bsgxAn/foo_extracted/Payload/myapp.app
Mar 27 17:58:21 unknown com.apple.itunesstored[144] <Notice>: MobileInstallationInstall: failed with -1
Mar 27 17:58:21 unknown installd[138] <Error>: 00403000 install_application: Could not preflight application install
Mar 27 17:58:21 unknown installd[138] <Error>: 00403000 handle_install: API failed
Mar 27 17:58:21 unknown installd[138] <Error>: 00403000 send_message: failed to send mach message of 71 bytes: 10000003
Mar 27 17:58:21 unknown installd[138] <Error>: 00403000 send_error: Could not send error response to client

2 个答案:

答案 0 :(得分:1)

当我设法从Xcode中的Build Settings中丢失ProvisioningProfile设置时,我遇到了这个问题 - 在Xcode升级后它是空白的。放回正确的配置文件设置会清除消息。

在这个问题上有很多类似的评论:Entitlement has value not permitted by a provisioning profile error

答案 1 :(得分:0)

在Info.plist文件中,确保appID的格式为“com.company.appname”(当然要替换为您的信息)。它不应该在开头有数字。

以下是关于此的Apple说明,也可能有所帮助:http://developer.apple.com/library/ios/#technotes/tn2242/_index.html