简体   繁体   中英

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

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:

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.

I enabled push notifications:

在此处输入图片说明

You need to enable Push Notifications for that AppId. So go to developer.apple.com ->Identifiers -> Edit your appId and enable Push Notificaton.

While enabling push notifications you will create developer APNS Certificate.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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