37

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.

pkamb
  • 33,281
  • 23
  • 160
  • 191
Joschka Schulz
  • 674
  • 1
  • 8
  • 18

6 Answers6

13

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.

nha
  • 17,623
  • 13
  • 87
  • 133
Ahmed Khalaf
  • 472
  • 5
  • 14
  • 1
    I'm not sure if it was the answer but there was something wrong with the provisioning file. After I checked it and clicked there on a fix button everything worked well. Thanks :) – Joschka Schulz Nov 26 '14 at 14:05
  • 1
    I have also updated my App Id with "App Groups" but still facing same issue. Could you please tell me what should I do exactly? – Sunil Targe Jul 15 '16 at 04:43
  • Please note that now you are allowed to develop on Apple devices without Developer membership, but this does not include App Groups feature. So if you are not enrolled, this error will occur. – Oswin Nov 03 '17 at 16:11
  • 2
    In my case I was facing the same error, I resolved it by providing app groups to app id before setting up app groups in Xcode – Saransh Sharma May 31 '18 at 12:40
9

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

pableiros
  • 14,932
  • 12
  • 99
  • 105
  • FWIW This is the only thing that worked for me. My bundle Identifiers were in there and fine, but Xcode was still marking it as not found. Furthermore, when I checked the checkbox for my app group, it would DUPLICATE the value, e.g. I'd have TWO checkboxes checked, but still the same error. Changing the bundle ID (and then changing it back) seemed to have reset things inside XCode. Thanks! – Eli Gassert Feb 03 '19 at 17:07
6

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

Chris
  • 7,270
  • 19
  • 66
  • 110
Rocky
  • 61
  • 1
  • 1
5

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.

Jazzmine
  • 1,837
  • 8
  • 36
  • 54
3

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.

Roland Keesom
  • 8,180
  • 5
  • 45
  • 52
-2

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

Ali Asad
  • 147
  • 3
  • 11
  • it's already a long time ago I had this issue. I tried this button but it ends in excatly the same warning. So the button was useless at the moment I got that error. – Joschka Schulz Jan 24 '16 at 21:03