macOS应用程序组名称应该以"group."还是开发团队ID开头? [英] Should macOS App Group name start with `group.` or Development Team ID?

查看:159
本文介绍了macOS应用程序组名称应该以"group."还是开发团队ID开头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将我的应用程序上载到Mac App Store时,出现错误-

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

iTunes Store操作失败.

iTunes Store operation failed.

无效的代码签名权利.您的应用程序捆绑包的签名包含Mac OS X不支持的代码签名权利.特别是,"com.MyCompany.mac"中的项"com.apple.security.application-groups"的值"[group.MyCompany.MyProject]".不支持MyProject.pkg/Payload/MyProject.app/Contents/MacOS/MyProject".该值应该是一个字符串或字符串数​​组,每个字符串都以TEAMID开头,后跟点.".

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 '.' .

但是我读到共享组必须以group.前缀开头-那么正确的方法是什么?

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

推荐答案

否,macOS应用程序组必须以您的开发团队ID 开头.

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

此键的值必须为数组类型,并且必须包含一个或多个字符串值,每个字符串值必须由开发团队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

请从Apple开发页面中检查以下示例.

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>

这篇关于macOS应用程序组名称应该以"group."还是开发团队ID开头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆