iOS – Fixing Provisioning Profile Missing com.apple.security.application-groups Entitlement

iosios-app-groupprovisioning-profilexcode

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.

Best Answer

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:

Related Question