How can I create an App Group without a "group." prefix?

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

Answered by DTS Engineer in 721548022

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, where TTT is your Team ID and GGG 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"

This is for the macOS App Store, not iOS

Accepted Answer

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, where TTT is your Team ID and GGG 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"

How can I create an App Group without a "group." prefix?
 
 
Q