ios 权利文件与您的配置文件中指定的文件不匹配。(0xE8008016)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22625785/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 23:48:24  来源:igfitidea点击:

Entitlements file do not match those specified in your provisioning profile.(0xE8008016)

iosiphonexcode

提问by Hitendra

The executable was signed with invalid entitlements.

可执行文件的签名无效。

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

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

I am getting this error. please help me.

我收到此错误。请帮我。

I have create the provisioning profile and change the bundle id. I have enable the keychain sharing from Target->Capabilities and generate the new .entitlement file. and i have also change the bundle id in that.

我已经创建了配置文件并更改了包 ID。我已从 Target->Capabilities 启用钥匙串共享并生成新的 .entitlement 文件。而且我还更改了其中的包 ID。

enter image description here

在此处输入图片说明

回答by luis.ap.uyen

In my case (using XCode 10.0) nothing worked but this:

在我的情况下(使用 XCode 10.0)除了这个没有任何效果:

File > Project Settings... > Shared Project Settings: > Build System --> Selected "Legacy Build System"instead of the default "New Build System (Default)".

文件 > 项目设置... > 共享项目设置:> 构建系统 --> 选择“传统构建系统”而不是默认的“新构建系统(默认)”。

回答by MTahir

For me in Xcode 5.1, I was getting The entitlements specified in your application's Code Signing Entitlements file do not match those specified in your provisioning profile.when trying to test the app on my device. Device Development Certificate has to expire Feb 2015.

对于 Xcode 5.1 中的我来说,我The entitlements specified in your application's Code Signing Entitlements file do not match those specified in your provisioning profile.在尝试在我的设备上测试应用程序时遇到了问题。设备开发证书必须在 2015 年 2 月到期。

Issue was resolved:

问题已解决:

Selected Target->Capabilities, under GameCenter, here I was getting error on GameCenter entitlement as it was not added to project, although first version of application was released via same XCode 5.1 but there were no errors like this before.

选择Target->Capabilities,在 GameCenter 下,这里我在 GameCenter 权利上遇到错误,因为它没有添加到项目中,尽管应用程序的第一个版本是通过相同的 XCode 5.1 发布的,但之前没有出现过这样的错误。

Below, a button was given with title Fix Issue. When clicked it added the GameCenter entitlement and issue was resolved.

下面,给出了一个带有 title 的按钮Fix Issue。单击后,它添加了 GameCenter 权利,问题已解决。

After wards the screen looks like:

在病房之后,屏幕看起来像:

enter image description here

在此处输入图片说明

For me, there was nothing to do with certificate or bundle identifier. App now runs successfully on the device.

对我来说,与证书或捆绑标识符无关。应用程序现在在设备上成功运行。

回答by megar

In XCode 7.3I encountered the same question, I 've made the mistake because: Name in (info.plist -->Bundle identifier) is not the same as (target-->build settings -->packaging-->Product bundle identifier). Just make the same, that solved the problem.

XCode 7.3我遇到同样的问题时,我犯了错误,因为: ( info.plist -->Bundle identifier) 中的名称与 ( target-->build settings -->packaging-->Product bundle identifier) 不同。做同样的,解决了问题。

回答by Mike Gledhill

As others have pointed out, if you get this error, you need to check that the Bundle ID value in both your .plist file andalso here:

正如其他人指出的那样,如果您收到此错误,您需要检查 .plist 文件此处的 Bundle ID 值:

Xcode project Build Settings tab with Product Bundle Identifier focused

Xcode project Build Settings tab with Product Bundle Identifier focused

回答by Maksim Usenko

First of all, you should check bundle id, provision profile and certificate with private key (.p12).

首先,您应该使用私钥 (.p12) 检查包 ID、配置文件和证书。

If it doesn't help. Be sure that the Code Signing Entitlementshas correct value or remove it at all.

如果没有帮助。确保代码签名权利具有正确的值或完全删除它。

enter image description here

enter image description here

回答by Raul Borda

File > Workspace Settings > Build System > Legacy Build System

文件 > 工作区设置 > 构建系统 >传统构建系统

This worked for me. Xcode 10.0

这对我有用。Xcode 10.0

回答by Shruti Thombre

enter image description here

enter image description here

Reassign the value of Automatically manage signing, this works for me

重新分配 的值Automatically manage signing,这对我有用

回答by fajar

In my case, the app main Target's Team was different from Tests' Target Team. Changing the Tests' Team to the same Team as main Target's solves the issue.

就我而言,应用主目标团队与测试的目标团队不同。将测试团队更改为与主要目标团队相同的团队可以解决问题。

回答by Ash

None of the previous answers either applied or worked for me. In my case, updating the settings of the test project, as follows, fixed it:

以前的答案都不适用于我或为我工作。在我的情况下,更新测试项目的设置,如下所示,修复它:

enter image description here

enter image description here

回答by Satinos

One possible reason for this error is: your annual subscription has been renewed. Once the subscription is renewed, all devices related to the active provision profiles will be detached.

此错误的一个可能原因是:您的年度订阅已续订。订阅续订后,与活动配置文件相关的所有设备都将被分离。

  1. The admin must reactivate the list of devices for the new subscribed year.
  2. The admin must delete last year provision profiles. (all are useless).
  3. The admin must regenerate new provision profiles for the new year with the list of devices of his choice.
  1. 管理员必须重新激活新订阅年份的设备列表。
  2. 管理员必须删除去年的配置文件。(都是没用的)。
  3. 管理员必须使用他选择的设备列表为新的一年重新生成新的配置文件。

After this, rebuild project with Xcode and the error will disappear.

之后,用Xcode重建项目,错误就会消失。