Unable to Resolve ITMS-90078 After Adding APNs Certificate: Push Notification Entitlement Issue in Codemagic Build #2758
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceStep to reproduceStart the new build in codemagic Step I've taken
Email received from Apple Store ConnectHello, We noticed one or more issues with a recent delivery for the following app. ITMS-90078: Missing potentially required entitlement - Your app, or a library that’s included in your app, uses Apple Push Notification service (APNs) registration APIs, but the APS Environment Entitlement isn’t included in the app signature’s entitlements. If your app uses APNs, make sure the App ID is enabled for push notifications in Certificates, Identifiers & Profiles, sign the app with a distribution provisioning profile that includes the APS Environment Entitlement, and upload a new build to ensure that push notifications function as intended. For details, visit: https://developer.apple.com/documentation/usernotifications/registering-your-app-with-apns. Apple Developer Relations Any help or advice would be greatly appreciatedExpected resultsAfter completing the steps above, the app should be successfully uploaded to App Store Connect without triggering the ITMS-90078 error. The push notification entitlements should be correctly embedded in the app, allowing it to handle push notifications. Actual resultsDespite following the steps, the upload to App Store Connect still fails with the ITMS-90078 error Build id (optional)66f673c2fc9cb3d3d36d0e0d |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
hello @gusentanan, yes, based on the warning message you provided, it seems that your provisioning profile might not have the correct entitlement enabled for your bundle identifier. Can you double-check on the apple developer page to see if the provisioning profile you’re referencing is marked as invalid? One other thing that you can try.. there is a Codemagic CLI command, which allows you to add capabilities to your provisioning profile without visiting the Apple Developer page. You can include this in your workflow or run it locally Here's an example of how this step would look if you add it to your workflow pipeline:
Just keep in mind that you need to use the BUNDLE_ID_RESOURCE_ID, not the actual identifier, and you can find it in the URL after opening the actual ID in the Apple Developer portal: |
Beta Was this translation helpful? Give feedback.
-
Hi @gusentanan, I am in the same boat and exactly did your steps, verifying that the Provisioning Profile has the correct (APN) entitlement. But no joy. Have you been able to resolve this? |
Beta Was this translation helpful? Give feedback.
-
Hi, sorry for the delayed response, @jimsakiko. I was able to resolve the email warning by enabling the Push Notification capabilities through Xcode, which requires a MacBook. It seems that manually adding the Once you've done that, Xcode will automatically update your P.S. Make sure you've also generated both development and production Push Notification certificates through the Apple Developer Portal, and register those in your messaging service (e.g., Firebase Messaging). Alternatively, you can use an auth key from the Apple Developer Portal as well. |
Beta Was this translation helpful? Give feedback.
Hi, sorry for the delayed response, @jimsakiko. I was able to resolve the email warning by enabling the Push Notification capabilities through Xcode, which requires a MacBook. It seems that manually adding the
Runner.entitlements
file is not working. What worked for me was enabling the Push Notification capability in Xcode by following this step.Once you've done that, Xcode will automatically update your
project.pbxproj
file under theRunner.xcodeproj
folder and generate the correctRunner.entitlements
. Afterward, just commit your changes and run the build in Codemagic.P.S. Make sure you've also generated both development and production Push Notification certificates through the Apple D…