添加权利文件时无效的权利0xE8008016 [英] invalid entitlements 0xE8008016 when I add the entitlements file

查看:142
本文介绍了添加权利文件时无效的权利0xE8008016的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试进行临时分发。当我使用XCode时,应用程序在我的手机上安装得很好。



为准备临时分发,我创建了默认权利文件,取消选中get-task-allow框,将权利文件名添加到代码签名权利行,并尝试在我的手机上安装。



如果我在构建设置中的权利中有文件,我会得到(可怕的)错误



您的应用程序的代码签名权利文件中指定的权利与您的供应配置文件中指定的权利不匹配。



(0xE8008016)。



如果我在代码签名部分列出了权利文件,则会发生这种情况。



我创建了一个全新的应用程序来测试它,看看会出现什么问题,这会发生在一个全新的测试应用程序中(所以看起来不像是干净的构建,打开和关闭XCode等会有所帮助)。



我缺少什么?我已经阅读了所有其他时间,这似乎没有任何适用。

解决方案

您需要按照以下步骤操作




  • 您是否更改了项目的info.plist中的包标识符???



请确保这也符合您的配置文件的标识符。




  • 转到您的项目信息。选择您希望部署构建的配置,然后检查已添加dist.plist文件的构建设置,并且配置文件与您需要运行的相同。


  • 如果您要进行分发构建,请将get-task-allow标记设置为未选中




<希望这会有所帮助。


I'm trying to do ad hoc distribution. When I use XCode, the application installs fine on my phone.

In preparation for ad hoc distribution, I created the default entitlements file, unchecked the get-task-allow box, added the entitlements file name to the code signing entitlements line, and tried to install on my phone.

If I have the file in the entitlements in build settings, I get the (dreaded) error

The entitlements specified in your application's Code Signing Entitlements file do not match those specified in your provisioning profile.

(0xE8008016).

This ONLY happens if I have the entitlements file listed in the code signing section.

I created a brand new application to test this, to see what could have gone wrong and this happens with a completely new test application (so it doesn't seem like clean builds, opening and closing XCode, etc will help).

What am I missing? I've read all of the other times this has occurred and nothing seems to apply.

解决方案

You need to follow these steps

  • Have you changed the bundle identifier in your project's info.plist???

Please make sure that this also matches with your provisioning profile's identifier.

  • go to your projects info. select the configuration you want your build to be deployed then check in build settings that you have added the dist.plist file and the provisioning profile is the same thta you need to run with.

  • If you are making the build for distribution then set the get-task-allow mark as unchecked

Hope this helps.

这篇关于添加权利文件时无效的权利0xE8008016的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆