Macos 获得不满意的权利

Macos 获得不满意的权利,macos,provisioning-profile,entitlements,ios-app-group,Macos,Provisioning Profile,Entitlements,Ios App Group,当我启动MacOS应用程序时,我可以在控制台上看到错误 com.myAppBundle: Unsatisfied entitlements: com.apple.security.application-groups Disallowing: com.myAppBundle 然而,这个应用程序似乎运行得很好, 我确实有权利文件包含这些值: <key>com.apple.security.app-sandbox</key> <true/> <

当我启动MacOS应用程序时,我可以在控制台上看到错误

 com.myAppBundle: Unsatisfied entitlements: com.apple.security.application-groups 
 Disallowing: com.myAppBundle
然而,这个应用程序似乎运行得很好, 我确实有权利文件包含这些值:

<key>com.apple.security.app-sandbox</key>
    <true/>
<key>com.apple.security.application-groups</key>
    <array>
        <string>$(TeamIdentifierPrefix)group</string>
    </array>
com.apple.security.app-sandbox
com.apple.security.application-groups
$(TeamIdentifierPrefix)组
那么为什么我会得到“未满足的权利”错误呢

编辑:

对于iOS应用程序,除了“功能”选项卡外,还需要在Apple Developer帐户中添加应用程序组。
但是OSX应用程序没有这样的选项,这是一个老问题,但由于它最近获得了一些投票,我将添加一些可能有帮助的信息: 在macOS上,应用程序组标识符以团队ID作为前缀,而在iOS上则不是这样

因此,对于iOS,应用程序组可以是: group.com.example.aaaa.bbb

对于macOS: V123ABC4ER.com.example.aaa.bbb