Xcode:Entitlements.plist 文件在哪里?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32545045/
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
Xcode: Where is the Entitlements.plist file?
提问by bigpotato
I'm trying to submit my first app but it apple keeps giving me an email about Missing Push Notification Entitlement
(asked a question here: iOS: Missing Push Notification Entitlement)
我正在尝试提交我的第一个应用程序,但苹果一直给我发一封电子邮件Missing Push Notification Entitlement
(在这里问了一个问题:iOS: Missing Push Notification Entitlement)
This guy here: https://stackoverflow.com/a/16681454/1555312seems to have an answer, which is to remove the Entitlements.plist file. However, I don't know where this file is. Could you let me know how to 1) locate the file 2) delete it 3) regenerate it?
这家伙在这里:https: //stackoverflow.com/a/16681454/1555312似乎有一个答案,那就是删除 Entitlements.plist 文件。但是,我不知道这个文件在哪里。你能告诉我如何 1) 找到文件 2) 删除它 3) 重新生成它吗?
p.s. I'm using objective c if that matters
ps 如果这很重要,我正在使用目标 c
回答by Jamil
回答by Sivajee Battina
When we are using push notifications related code in our app and if that capability is not configured in Xcode or in App ID that mail comes from apple. If you are not going to use Push notifications in your app, then you can ignore that mail. But if you are using it, enable that capability in Xcode-> Target--> Capabilities --> Push Notifications
当我们在我们的应用程序中使用推送通知相关代码时,如果该功能未在 Xcode 或 App ID 中配置,则邮件来自苹果。如果您不打算在您的应用程序中使用推送通知,那么您可以忽略该邮件。但是,如果您正在使用它,请在 Xcode-> Target--> Capabilities --> Push Notifications 中启用该功能
or
或者
Go to developer portal and check enable push notifications capability for your App ID and enable it if it's disabled.
转到开发人员门户并检查为您的 App ID 启用推送通知功能,如果它被禁用,则启用它。