The problem for me seems to be related to the app extensions and plugins bundled with my Mac app, such as an App Intents extension and a Widgets extension.
The embedded.provisionprofile generated by Xcode for the Mac app itself correctly contains the com.apple.security.application-groups entitlement for my iOS style prefixed group. However, all the related extensions do not, and this is what Xcode is throwing an error about when uploading.
When building the same app for iOS, the com.apple.security.application-groups entitlement is correctly included in the embedded.mobileprovision files of the extensions.
I've tried this with Xcode 16.2 using automatically managed signing. I haven't had the chance to try this with the 16.3 beta yet. Perhaps that version fixes how the provisioning profiles are created.
Topic:
Code Signing
SubTopic:
Entitlements
Tags: