Xcode 免费配置:“Apple 推送通知”功能仅适用于注册 Apple Developer Program 的用户
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37522049/
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 free provisioning: The 'Apple Push Notification' feature is only available to users enrolled in Apple Developer Program
提问by RajuBhai Rocker
I am trying to use xcode free provisioning but I am getting the following problem
我正在尝试使用 xcode 免费配置,但遇到以下问题
I have disabled Remote Notification after getting this problem but it still does not go away.
我在遇到这个问题后禁用了远程通知,但它仍然没有消失。
How to fix this problem
如何解决这个问题
xcode version 7.2 ios version 9+
xcode 版本 7.2 ios 版本 9+
Note:
笔记:
xcode has created a certificate for me .I could see this in keychain
xcode 为我创建了一个证书。我可以在钥匙串中看到这个
采纳答案by Hari Prasath Balachandran
Delete the certificate from the keychain. Remove your account from the xcode->preference->Accounts. Add your account again. The issue will be resolved. The remote notification feature is not available for free apple developer account.
从钥匙串中删除证书。从 xcode->preference->Accounts 中删除您的帐户。再次添加您的帐户。问题将得到解决。远程通知功能不适用于免费的苹果开发者帐户。
回答by Dante
Here is a shortcut for those who tried the delete certificate way but still not working:
这是那些尝试删除证书方式但仍然无法正常工作的人的快捷方式:
Find your project's projectName.xcodeproj,click "open content",edit "project.pbxproj" with a txt editor :
找到你项目的projectName.xcodeproj,点击“打开内容”,用txt编辑器编辑“project.pbxproj”:
change:
改变:
com.apple.Push = {
enabled = 1;
};
into:
进入:
com.apple.Push = {
enabled = 0;
};
Redo the build and this time no error on push : )
重做构建,这次推送没有错误:)
回答by u5150587
To right click on the projectName.xcodeproj -> Show Package Contents -> open the project.pbxproj -> search the "com.apple.Push" -> set enabled = 0
右键单击 projectName.xcodeproj -> Show Package Contents -> 打开 project.pbxproj -> 搜索“com.apple.Push” -> 设置 enabled = 0