Post iOS10 / Xcode 8.0 “Missing Push Notification Entitlement” error after build for iTunes Store

后端 未结 3 1787
北海茫月
北海茫月 2021-01-02 02:49

Whilst building for iTunes store and submitting the archive, I receive this error from apple:

Dear developer,

We have discovered one or m

相关标签:
3条回答
  • 2021-01-02 03:25

    This answer linked below is a little easier than the solutions suggested here. You can simply fix using the xCode UI without having to manually create any new files. Just flip the switch for push notifications in the Capabilities section.

    https://stackoverflow.com/a/39420213/4076298

    0 讨论(0)
  • Try creating an Entitlements.plist file in the root of your project.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/
    DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
      <dict>
        <key>aps-environment</key>
        <string>production</string> <!-- Either development or production -->
      </dict>
    </plist>
    

    SO, before Xcode 8, Xcode would read your provisioning profile and if the profile had the push entitlement set in it, would automagically add the entitlement to the build for you. Since Xcode 8, this is no longer the case, and you must specifically specify the entitlements you use.

    0 讨论(0)
  • 2021-01-02 03:47

    Appcelerator have actually fixed this issue in an upcoming release 5.5.1 and can be downloaded from here: http://builds.appcelerator.com.s3.amazonaws.com/index.html#5_5_X

    0 讨论(0)
提交回复
热议问题