Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should macOS App Group name start with `group.` or Development Team ID?

When I'm trying to upload my app to the Mac App Store, I get the error -

iTunes Store operation failed.

Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on Mac OS X. Specifically, value '[group.MyCompany.MyProject]' for key 'com.apple.security.application-groups' in 'com.MyCompany.mac.MyProject.pkg/Payload/MyProject.app/Contents/MacOS/MyProject' is not supported. This value should be a string or an array of strings, each starting with your TEAMID followed by a dot '.' .

But I read that the shared group MUST begin with the group. prefix - so what is the correct way ?

like image 949
Roee84 Avatar asked Jun 26 '16 10:06

Roee84


1 Answers

No, macOS App Groups MUST begin with your development team ID.

The value for this key must be of type array, and must contain one or more string values, each of which must consist of your development team ID, followed by a period, followed by an arbitrary name chosen by your development team

Please check below sample from Apple develop page.
https://developer.apple.com/library/mac/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW19

<key>com.apple.security.application-groups</key>
<array>
    <string>DG29478A379Q6483R9214.HolstFirstAppSuite</string>
    <string>DG29478A379Q6483R9214.HolstSecondAppSuite</string>
</array>
like image 78
Jerry YY Rain Avatar answered Oct 05 '22 23:10

Jerry YY Rain