I have push notifications working on my app.
I went to go submit a new app update and I ran into an error with APS environment not being set.
I hit fix issue and it c
After trying all the answers in stack over flow found out the problem is in entitlement.plist file can be debugged flag was set to TRUE.
disable and re-enable push notifications in Xcode target capabilities.Can be debugged flag should be set to NO to submit it to AppStore.Build and archive. You should be able to see environment set to production.