ios - 推送授权未出现在分发配置文件中

标签 ios apple-push-notifications xcode5 provisioning-profile

当我将带有推送通知的 iOS 应用程序提交到 App Store 时,我收到了臭名昭著的“缺少推送通知权利”电子邮件:

Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement.

我已经尝试撤销并重新创建所有生产配置文件、供应配置文件和 APNS 生产证书。我的 App ID 启用了推送通知,并且配置了正确的 APNS 证书。

问题似乎是即使 iOS 开发中心的所有配置都正确,我下载的配置文件也没有所需的推送通知授权(aps 环境)。所附图片显示,我的分发配置文件 (Xcode 5) 仅启用了 In App Purches 和 Game Center。

Notice the missing push notification Entitlement

最佳答案

转到开发者门户,编辑用于分发的临时配置文件,并在重新创建后再次下载。

注意从您的 mac 中删除旧的临时配置文件。还要检查您是否在build设置上使用它签名。

这应该有效。

关于ios - 推送授权未出现在分发配置文件中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19500207/

相关文章:

ios - OneSignal 不调用 didReceiveRemoteNotification

java - IOS APNs p12 证书文件不适用于 Java

XCode 5 - AppleScript - 如何在当前选项卡中获取文档

ios - 使用 Autolayout 的 Xcode 中的 Storyboard form factor 和 Active Scheme 之间有什么关系?

macos - 由于 iCloud,Mac App 在审核中崩溃,但无法在本地测试 iCloud。我能做些什么?

iphone - 代码/iOS : Iterating through all instances of a given class?

ios - mouseJoint 不会在 xcode 中抓取对象

iOS : Programmatically control the volume of Notification alert and sound theme

ios - 在 Swift 中以编程方式更改 iAd 位置

ios - UIView 未被调用