Provisioning profile doesn't include the com.apple.security.application-groups entitlement

Sazzad Hissain Khan picture Sazzad Hissain Khan · Jan 26, 2017 · Viewed 25.4k times · Source

I am getting error while configuring Xcode provisioning profiles.

Provisioning profile $ProfileName doesn't include the com.apple.security.application-groups entitlement.

How to fix it. It seems my provisioning profile/certificate does not have some capabilities. How/where to add those capabilities?

enter image description here

update

In marked duplicated post, Sharing data in between apps in IOS the 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.

Answer

shallowThought picture shallowThought · Jan 26, 2017

First you have to set the app group up in the Apple Developer Center for your App ID:

Afterwards in Xcode:

  • Select your target
  • Enable "App Groups" in the "Capabilities" tab
  • Tick the checkmark for the App Groups you want to use: