3

I've just uploaded an app to iTunes Connect and got the "Missing Push Notification Entitlement" warning from Apple. My app does not use any API related to push notifications. The warning also included that I do not have the aps-environment entitlement. How do I get rid of this warning? I tried disabling push notifications in the member center and in Xcode (I created a preprocessor macro DISABLE_PUSH_NOTIFICATIONS=1) and still no luck.

EDIT: I used grep in my project directory to search for couple of strings that could cause this issue. Grep matched the string

"registerForRemoteNotificationTypes"

in

./myProject.xcodeproj/project.xcworkspace/xcuserdata/myUser.xcuserdatad/UserInterfaceState.xcuserstate

I have no idea whether removing the string from this file will change anything because I am unable to upload the app to TestFlight at the moment. I will be thankful if someone has the same issue and tries to fix it by removing the string found by grep (if it's a good idea to edit .xcuserstate files...)

4

2 回答 2

0

在您的捆绑 ID 中启用推送通知并重新创建配置文件。这对我有用。

于 2015-08-28T13:42:03.663 回答
0

尝试重新创建分发配置文件并仔细检查您没有将推送通知包含在权利列表中

于 2015-08-28T11:48:20.090 回答