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:
after it finished the loading I got the following warnings:
What can I do to correct the two wrong steps? If I'm right it is already added to my App ID.
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.
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.
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.
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.
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.
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
After that, I checked the App Groups
and the warnings had gone
You can try this steps:
Find your App Id and make sure your App Group state is Enabled.
Use your App Id to create Provisioning Profiles and download to your computer then double click it
Check Xcode's Identity to make sure your team is the right one. If you have problems, click fix issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With