Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

Before the warning there was a loading spinner like this:

Adding the "App Groups" entitlement to your App 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.

like image 567
Joschka Schulz Avatar asked Nov 26 '14 10:11

Joschka Schulz


People also ask

How do I add entitlements in Xcode?

In your project's “Signing & Capabilities” panel, turn on the App Sandbox. This creates a new entitlement file in your project with the same name as the app target. Select the entitlements file. Click the Add button (+) to add a new property to the entitlements file.

How do I change signing capabilities in Xcode?

On Xcode 11.3, under the project file there are tabs for General, Signing, etc. To the left of those nav buttons there should be your project's name in a dropdown. That is the target, click the dropdown to select a different target, e.g., the tests and from there you can select the signing.

How do I enable capabilities in Xcode?

In the toolbar, click the Library button (+) to open the Capabilities library. Alternatively, click + Capability to the left of the build configurations, or choose Editor > Add Capability.

What is app groups in iOS?

App groups allow multiple apps produced by a single development team to access shared containers and communicate using interprocess communication (IPC). Apps may belong to one or more app groups. Apps within an app group share access to a group container.


3 Answers

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

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.

like image 132
Ahmed Khalaf Avatar answered Oct 23 '22 21:10

Ahmed Khalaf


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

You can change that in:

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

bundle identifier

After that, I checked the App Groups and the warnings had gone

result

like image 29
pableiros Avatar answered Oct 23 '22 23:10

pableiros


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

like image 6
Rocky Avatar answered Oct 23 '22 21:10

Rocky