简体   繁体   English

在设备上运行构建并注册推送通知时出错

[英]Error running build on device and registering for push notifications

I am seeing this error after trying to register for push notifications when I build onto my device: "no valid 'aps-environment' entitlement 在我的设备上尝试注册推送通知后,我看到此错误: "no valid 'aps-environment' entitlement

Based on some googling, I think this has to do with the provisioning profile not matching the bundle identifier for the app. 基于一些谷歌搜索,我认为这与配给配置文件与应用程序的捆绑标识符不匹配有关。 When I go to Window > Devices > (Select my device) > "Show Provisioning Profiles" I see that it is using a profile called this: 当我转到Window > Devices > (Select my device) > "Show Provisioning Profiles"我看到它正在使用名为以下文件的配置文件:

iOSTeam Provisioning Profile:* . iOSTeam Provisioning Profile:*

I've tried everything I can find, but can't track down the source of the issue or what I need to change to get this to work. 我已经尝试了所有可以找到的内容,但是无法找到问题的根源或需要进行哪些更改才能使其正常工作。 Any help would be greatly appreciated :) 任何帮助将不胜感激 :)

PS I'm using Parse for push notifications, incase that is relevant. PS我正在使用Parse进行推送通知,以防相关。

I enabled push notifications: 我启用了推送通知:

在此处输入图片说明

You need to enable Push Notifications for that AppId. 您需要为该AppId启用推送通知。 So go to developer.apple.com ->Identifiers -> Edit your appId and enable Push Notificaton. 因此,请转到developer.apple.com->标识符->编辑您的appId并启用Push Notificaton。

While enabling push notifications you will create developer APNS Certificate. 启用推送通知时,您将创建开发人员APNS证书。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM