缺少 Xcode 9 推送通知功能

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

Xcode 9 Push notification capability missing

iosxcodeapple-push-notifications

提问by Saqib Omer

Push notification settings are missing from

缺少推送通知设置

Target->Capabilities->

目标->能力->

I can not enable push notifications. Previously app was not supporting push notifications. Project was compiled in old Xcode version. In Xcode 9.0 Push notification capability was missing. enter image description here

我无法启用推送通知。以前的应用程序不支持推送通知。项目是在旧的 Xcode 版本中编译的。在 Xcode 9.0 中缺少推送通知功能。 在此处输入图片说明

回答by Oluwatobi Omotayo

In Xcode 9 you have to select an account enrolled in the Apple Developer Program, using an account in Xcode by signing in using your apple ID isn't enough, the account has to be enrolled in the developer program. When you select such account the list of capabilities you can set changes and you can now see the Push notifications capability. Check out this Advanced App Capabilitiesfrom Apple

在 Xcode 9 中,您必须选择注册 Apple Developer Program 的帐户,在 Xcode 中通过使用您的 Apple ID 登录的帐户是不够的,该帐户必须注册到开发者计划中。当您选择此类帐户时,您可以设置的功能列表会发生变化,您现在可以看到推送通知功能。查看Apple 的高级应用程序功能