Xcode 8 APS Environment Entitlement won't set to production
<p>I have push notifications working on my app.<br> I went to go submit a new app update and I ran into an error with APS environment not being set.<br>I hit fix issue and it created the entitlement file with APS environment set to development.<br><br> To submit the app I obviously want this set to production. I change the value to production and proceed to archive the app for submission.<br>It throws an error in the capabilities section for push notifications with the last past "Add the Push Notifications entitlement to your entitlements file" being red.<br><br>So when I hit fix issue, it then changes the value of APS environment to development.<br>I came across a suggestion to inspect the provisioning profile and look for the APS environment property.<br>I went through the process of archiving and selected "Upload to App Store".<br><br>When I finally reached the summary, I clicked on the provisioning profile attached to the binary and entitlements.<br>I open the provisioning profile in a text editor and looked for the APS environment property.<br> I did find the property and it is set to production in the provision profile.<br> I decided to try another suggestion, which was to recreate the distribution provisioning profile.<br> I did make a new one and that solution doesn't work either.<br><br>From what I understand, the APS environment property is based on the value in your provisioning profile. </p>

<p>Any help would be appreciated. Thanks.</p>