“权利具有配置文件不允许的值”,但它没有

Posted

技术标签:

【中文标题】“权利具有配置文件不允许的值”,但它没有【英文标题】:"Entitlement has value not permitted by a provisioning profile", but it does not 【发布时间】:2012-03-27 16:33:46 【问题描述】:

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

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

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

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

我提到我正在使用 Testflight 分发 AdHoc 构建,因为 Testflight 会自动验证应用程序二进制文件(权利和配置文件),当我上传值不匹配的二进制文件时,它会显示错误,如他们的常见问题解答部分 here 和 @987654322 中所述@

另一个奇怪的是,同样的错误连续出现多次(现在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

【问题讨论】:

【参考方案1】:

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

这个问题有一堆类似的cmet:Entitlement has value not permitted by a provisioning profile error

【讨论】:

【参考方案2】:

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

这里有一个 Apple 说明,可能也有帮助:http://developer.apple.com/library/ios/#technotes/tn2242/_index.html

【讨论】:

感谢您的回复。我的应用程序的 AppId 不包含任何数字,尽管它允许使用数字 [0-9],因为它是类似 DNS 的表示法。 AppId 的所有限制均基于 DNS 名称限制。

以上是关于“权利具有配置文件不允许的值”,但它没有的主要内容,如果未能解决你的问题,请参考以下文章

graphql-codegen 没有与配置文件一起运行

没有 HDFS 的 Impala 和 Kudu

找不到匹配的配置文件 Xcode

未找到配置文件:未找到未过期的配置文件

没有配置白名单,没有代码覆盖会产生错误

WatchKit 扩展配置文件?