XCode Push notification capabilities error

Xcode is display an error when I turn on the Capabilities Push Notification indicator. From the development portal, I have enabled Push Notification. I have created and download a new profile for the app. However, when I enable Push Notifications from the Capabilities option, XCode displays an error message


Add the "Push Notifications" entitlement to your app.

XCode Push notification capabilities error
 
 
Q