xcode 配置文件不包括 com.apple.security.application-groups 权利
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41867538/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Provisioning profile doesn't include the com.apple.security.application-groups entitlement
提问by Sazzad Hissain Khan
I am getting error while configuring Xcode provisioning profiles.
配置 Xcode 配置文件时出现错误。
Provisioning profile $ProfileName doesn't include the com.apple.security.application-groups entitlement.
配置文件 $ProfileName 不包括 com.apple.security.application-groups 权利。
How to fix it. It seems my provisioning profile/certificate does not have some capabilities. How/where to add those capabilities?
如何修复它。我的配置文件/证书似乎没有某些功能。如何/在哪里添加这些功能?
update
更新
In marked duplicated post, Sharing data in between apps in IOSthe poster asked for generic way to share data between apps but in this post i am asking to resolve a specific build error i am getting while sharing data in between groups.
在标记重复的帖子中,在 IOS 中的应用程序之间共享数据,海报要求以通用方式在应用程序之间共享数据,但在这篇文章中,我要求解决在组之间共享数据时遇到的特定构建错误。
回答by shallowThought
First you have to set the app group up in the Apple Developer Center for your App ID:
首先,您必须在 Apple Developer Center 中为您的 App ID 设置应用组:
Afterwards in Xcode:
之后在 Xcode 中:
- Select your target
- Enable "App Groups" in the "Capabilities" tab
- Tick the checkmark for the App Groups you want to use:
- 选择你的目标
- 在“功能”选项卡中启用“应用程序组”
- 勾选您要使用的应用程序组的复选标记: