我的项目中的 Xcode 6 无效权利

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26688884/
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-09-15 06:04:12  来源:igfitidea点击:

Xcode 6 invalid entitlements in my project

iosiphonexcodeentitlements

提问by Max Max

I want to distribute my app, but when I run it it shows me message:

我想分发我的应用程序,但是当我运行它时,它向我显示消息:

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

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

I already watch my distribution account and Capabilities in Xcodeand entitlements in them are the same. In what can be problem?

我已经看到我的分发帐户和其中的能力Xcode和权利是相同的。有什么问题?

回答by rjeprasad

I also get this exception few times when I did something with provisioning profiles or capabilities, In my case its always in iCloudkit (xcode 6) issue, for some reason in app id (if you check in developer center) it assigned invalid or unwanted icloud containers to the app id. So i remove them and only added one correct container to fix this issue.

当我对配置文件或功能进行某些操作时,我也多次遇到此异常,就我而言,它始终存在于 iCloudkit(xcode 6)问题中,出于某种原因,在应用程序 ID(如果您在开发人员中心查看)中,它分配了无效或不需要的 icloud容器到应用程序 ID。所以我删除了它们,只添加了一个正确的容器来解决这个问题。

enter image description here

在此处输入图片说明

回答by Mike Gledhill

You probably need to check your Bundle ID value in both your .plist file and also here:

您可能需要在 .plist 文件和此处检查您的 Bundle ID 值:

enter image description here

在此处输入图片说明

(This really is the most developer-unfriendly environment in use in 2016...)

(这确实是 2016 年使用的对开发人员最不友好的环境......)

回答by Radwa Ebrahim

I had this problem recently, You will find many questions here with the same issue, check this question for the approved answer The executable was signed with invalid entitlements (iPhone build)

我最近遇到了这个问题,您会在此处找到许多相同问题的问题,请检查此问题以获取批准的答案可执行文件的签名无效(iPhone 版本)

For me, I didn't do this. I tested the app on the device using the development certificate and the ad-hoc one, Then submitted it using the disruption certificate after making sure that there is nothing wrong with my certificates.

对我来说,我没有这样做。我使用开发证书和临时证书在设备上测试了应用程序,然后在确保我的证书没有问题后使用中断证书提交它。