我正在尝试通过TestFlight安装AdHoc版本,但是遇到了一些奇怪的困难。以下是iOS在下载二进制文件并开始安装后输出的控制台日志。关键问题是iOS说权限与mobileprovision数据不匹配,但当我比较它们时,它们是匹配的。
我已经仔细检查了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