ios 添加应用程序组后 Xcode 显示警告(将“应用程序组”权利添加到您的应用程序 ID)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27146966/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 03:48:22  来源:igfitidea点击:

Xcode shows warning after adding App Groups (Add the "App Groups" entitlement to your App ID)

iosxcodeios-app-group

提问by Joschka Schulz

After I added an App Group in Xcode it shows a warning:

在 Xcode 中添加应用程序组后,它显示警告:

Add the "App Groups" entitlement to your App ID
Add the "App Groups containers" entitlement to your App ID

将“应用程序组”权利
添加到您的应用程序 ID将“应用程序组容器”权利添加到您的应用程序 ID

Before the warning there was a loading spinner like this:

在警告之前有一个像这样的加载微调器:

Adding the "App Groups" entitlement to your App ID...

将“应用程序组”权利添加到您的应用程序 ID...

after it finished the loading I got the following warnings:

完成加载后,我收到以下警告:

remaining warnings

剩余警告

What can I do to correct the two wrong steps? If I'm right it is already added to my App ID.

我能做些什么来纠正这两个错误的步骤?如果我是对的,它已经添加到我的 App ID 中。

采纳答案by Ahmed Khalaf

I faced the same issue, and in my case my apple id did not have the permission to add the "App Group".

我遇到了同样的问题,就我而言,我的 Apple ID 没有添加“应用程序组”的权限。

If your account's type is "Member", not "Agent", then you need your Agent/Admin who has the main development account to add the "App Group" for you.

如果您的帐户类型是“会员”,而不是“代理”,那么您需要拥有主要开发帐户的代理/管理员为您添加“应用程序组”。

回答by pableiros

For me, what worked was I had to changed the Bundle Identifierbecause I was working with a project template I had downloaded from the internet.

对我来说,有效的是我必须更改,Bundle Identifier因为我正在使用从互联网下载的项目模板。

You can change that in:

你可以改变它:

Project Navigator -> Target -> <Your target> -> General tab

bundle identifier

捆绑标识符

After that, I checked the App Groupsand the warnings had gone

在那之后,我检查App Groups了警告已经消失了

result

结果

回答by Jazzmine

For me, what worked was having the phone attached. Once I attached it, Xcode was able to finish the process and the two red check mark problems were resolved.

对我来说,有效的是连接电话。一旦我附加了它,Xcode 就能够完成这个过程,两个红色的复选标记问题也得到了解决。

回答by Rocky

You can try this steps:

您可以尝试以下步骤:

  1. Find your App Id and make sure your App Group state is Enabled.

  2. Use your App Id to create Provisioning Profiles and download to your computer then double click it

  3. Check Xcode's Identity to make sure your team is the right one. If you have problems, click fix issue

  1. 找到您的 App Id 并确保您的 App Group 状态为 Enabled。

  2. 使用您的 App Id 创建配置文件并下载到您的计算机,然后双击它

  3. 检查 Xcode 的身份以确保您的团队是正确的。如果您有问题,请单击修复问题

回答by Roland Keesom

My problem was not having the App Groups set up correctly on all my App IDs on the Developer Portal. Therefor the App Groups in the app didn't work correctly.

我的问题是没有在开发人员门户上的所有应用 ID 上正确设置应用组。因此应用程序中的应用程序组无法正常工作。

回答by Ali Asad

You can just go to here and press fix issue to add your app ID, Bundle identifier and code signing first to your Developer IDenter image description here

您只需转到此处并按修复问题将您的应用程序 ID、捆绑包标识符和代码签名先添加到您的开发人员 ID在此处输入图片说明