When I use EAS Build and Submit to make a build and submit it to the iOS App Store, I receive the following message from Apple:
ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature’s entitlements do not include the ‘aps-environment’ entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the ‘aps-environment’ entitlement. Xcode 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.
I verified that Push Notification is turned on and configured in my app’s Identity file, and I can see that EAS Build is logging into my Apple account and going through the capabilities sync process. I deleted my provisioning profile and let EAS re-create it, and I also tried manually using my own provisioning file and disabling capability sync. Nothing worked. I really did try every combination!
In order to see what was going on, I ejected from Expo, built the app directly from Xcode, and submitted. Same exact message from Apple. A clue: when I was uploading the build from Xcode, I noticed that the “aps-environment” entitlement was missing in the app.
Then I manually added the Push Notification capability via Xcode Capabilities page, and this created a new Entitlements file. Once I did that, I was able to successfully submit the build. When I was uploading the build this time, I saw the “aps-environment” entitlement in the app.
As an experiment, I added the ""expo-notifications” plugin to app.json, but the managed workflow still produced a build without the “aps-environment” entitlement.
How can I fix this issue? I miss using managed builds!