So in Xcode the provision profile says that aps-environment entitlement is part of it but after Archive the provisioning profile is missing the aps-entitlement.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The Xcode 8 release notes mention this issue:
Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor’s Capabilities pane, or manually add the entitlement to your entitlements file. (28076333)
In general, any entitlement you intend your app to have should be in your entitlements file.