xcode 权利与供应配置文件不匹配 (0xE8008016)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40985359/
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
Entitlements don't match Provisioning Profile (0xE8008016)
提问by SSB95
today I finally got my Company-Developer-Account. I'm working on an App, first on my private Account and today I wanted to move the App to the company account. So I created a new Bundle-Identifier on developer.apple.comand changed the Bundle-Identifier also in my Xcode-Project. Furthermore, I've added the Account to Xcode, changed Signing to my new Company Account and let Xcode fix the Provisioning-File-Troubles. (In Xcode I see two Team-Members from one Account, one is Agent, the other User. Maybe it's important that I've choose the Agent-Team-Member. Unfortunately I can't change because then I get the error "change to a unique bundle-id, because the bundle-id is already on the Agent-Team?^^) Running with the Simulator works fine, but when I want to test on my Phone I get the following Error: The entitlements specified in your application's Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016).
今天我终于得到了我的公司 - 开发人员 - 帐户。我正在开发一个应用程序,首先是在我的私人帐户上,今天我想将该应用程序移至公司帐户。因此,我在developer.apple.com上创建了一个新的 Bundle-Identifier,并在我的 Xcode-Project 中更改了 Bundle-Identifier。此外,我已将帐户添加到 Xcode,将签名更改为我的新公司帐户,并让 Xcode 修复 Provisioning-File-Troubles。(在 Xcode 中,我看到来自一个帐户的两个 Team-Members,一个是 Agent,另一个是 User。也许我选择 Agent-Team-Member 很重要。不幸的是,我无法更改,因为我收到错误“更改到唯一的 bundle-id,因为 bundle-id 已经在 Agent-Team 中?^^) 与模拟器一起运行工作正常,但是当我想在我的手机上测试时,我收到以下错误: The entitlements specified in your application's Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016).
If I press the I next to the provisioning file, I see the following Entitlements:
And under Entitlements I've just the Push-Notifications enabled. But this was like this before changing Bundle Identifier
在权利下,我刚刚启用了推送通知。但是在更改 Bundle Identifier 之前是这样的
回答by Scott Terry
I had this same problem and none of the solutions I found on stack overflow, or github worked for me.
我遇到了同样的问题,我在堆栈溢出或 github 上找到的解决方案都没有对我有用。
Here's my solution:
这是我的解决方案:
Select the "General" tab.
- To the left of the "General" tab, select your target to the left; (this should show a dropdown with a list of targets)
- Below your current target you should see an item {your project}Tests; select that.
- Check the signing properties in the general tab and make sure they are valid.
选择“常规”选项卡。
- 在“常规”选项卡的左侧,选择左侧的目标;(这应该显示一个带有目标列表的下拉列表)
- 在您当前的目标下方,您应该看到一个项目 {your project}Tests; 选择那个。
- 检查常规选项卡中的签名属性并确保它们有效。
This was the problem for me. Hope it helps.
这对我来说是个问题。希望能帮助到你。
回答by Petro Lomaka
Xcode 9 GM. Error appears if manual signing turned on.
Xcode 9 通用。如果手动签名打开,则会出现错误。
Turn on automatic code signing. Turn off automatic code signing.
打开自动代码签名。关闭自动代码签名。
回答by NSAnant
You need to go through all the details where your provisional profile and certificate getting set from the main page.
您需要查看从主页设置临时配置文件和证书的所有详细信息。
E.g. In all targets - > Build settings -> Code signing identity and provisinign profile and set your correct profiles every where in the application.
例如,在所有目标中 -> 构建设置 -> 代码签名身份和提供配置文件,并在应用程序的每个位置设置正确的配置文件。
sometimes when you are selecting manual codesigning then it is not reflecting correcly in all places.
有时当您选择手动协同设计时,它并没有在所有地方正确反映。
回答by hvaughan3
For me, I ended up getting this error when I did not have the private key associated with the certificate that was being used to sign the app. Make sure you open Keychain Access and verify that you have a private key for the certificate that is associated with your provisioning profile.
对我来说,当我没有与用于签署应用程序的证书相关联的私钥时,我最终收到了这个错误。确保您打开 Keychain Access 并验证您是否拥有与您的配置文件关联的证书的私钥。
回答by Hosny
Try to uninstall your application from your device and then run your app on Xcode , i think that current app that was on your device signed with old account so you cannot run your new app that was assigned with new account , hope to help .
尝试从您的设备上卸载您的应用程序,然后在 Xcode 上运行您的应用程序,我认为您设备上的当前应用程序使用旧帐户签名,因此您无法运行分配给新帐户的新应用程序,希望能提供帮助。