I am embedding an Electron app within my main app for the macOS App Store.
The electron component needs an app group that is named TEAMID.bundle-id
But the web interface on developer.apple.com won't allow me to enter anything that isn't prefixed by group
App Groups on the Mac work very differently from App Groups on iOS. You do not, in general, need to register your Mac app groups with the Developer website. Rather:
-
Use the group ID you want.
-
If your app is sandboxed, as is the case for all Mac App Store apps, add the group ID to the
com.apple.security.application-groups
entitlement.
The com.apple.security.application-groups
is not restricted on macOS, so you can use any value you like. However, I strongly recommend that you stick to one of the following styles:
-
macOS style — This is of the form
TTT.GGG
, whereTTT
is your Team ID andGGG
identifies the group within that team. -
iOS-style — This is of the form
group.GGG
. Use this option if you need to share the group ID with an Mac Catalyst or iOS Apps on Mac app. In this case, make sure to register your group ID with the Developer website.
That’ll avoid any weirdness when you submit your app.
ps The current docs do not cover this adequately, and we already have a bug on file about that (r. 92322409).
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"