xamarin-macios
xamarin-macios copied to clipboard
ITMS-90078: Missing Push Notification Entitlement when building with iOS SDK 17.5.8018
Steps to Reproduce
CI/CD builds from Azure Pipelines for our MAUI application have begun producing .ipa's with the following warning:
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. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.
The application does not have a "Push Notification Entitlement". No changes have been made to entitlements, profile etc. No code changes have been made.
Began happening on 7 August 2024 when we bumped to macOS 14 / Xcode 15.4 and dotnet workload install
began installing the latest SDK version. Builds from the day before did not generate any warnings with the following configuration:
macOS 13
Current image version: 20240728.2
Microsoft.iOS.Sdk version 17.2.8078
Microsoft.Maui.Sdk version 8.0.61
Expected Behavior
An ITMS-90078 warning should not be produced.
Actual Behavior
An ITMS-90078 warning is produced with Microsoft.iOS.Sdk 17.5.8018.
Environment
Azure Pipelines: macOS-14
(20240804.1)
Xcode 15.4
Microsoft.iOS.Sdk 17.5.8018
Microsoft.Maui.Sdk 8.0.71