I've searched on here but haven't found my answer yet. There seem to be many similar questions but none of the fixes work for me.
The error I'm getting is: "no valid “aps-environment” entitlement string found for application".
I'm running iOS 11 and macOS Sierra.
I've followed all of the directions on the tutorial as far as creating the appropriate certificates, creating the app ID, the provisioning profile, exporting the .p12 file and uploading it to Azure Notification Hub and all of that works exactly as expected.
The App ID has "Push Notifications" enabled and there's a yellow circle by "Configurable". I've created the Developmenet SSL Certificate for the push notification, which is what gets uploaded to the Azure Notification Hub.
Still, though, I get that error. The app starts, asks for permission for push notifications, then hits the "FailedToRegisterForRemoteNotifications" method.
What's odd to me is that when I open the entitlements.plist, "Enable Push Notifications" is not checked. If I try to check that, then when I start the app it tells me it can't run because the entitlements don't match what is set in the app ID.
Can anybody help me out and get me going in the right direction? I've tried deleting everything (app IDs, certs, provisioning profiles) multiple times. Including deleting the certs that are installed into Keychain Access.