Provisioning profile doesn't include the com.a

2019-04-26 15:49发布

问题:

This question already has an answer here:

  • Sharing data in between apps in IOS 1 answer

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?

回答1:

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: