Issue with iOS group entitlements being recognized

I am making an iOS step counting app and I have included a widget in the design. I would like to get the widget to pull data from the main app to display step count etc so I created a bundle id for the widget and have been trying to use a group id to link them together. The group capabilities for both seem to be set up/enabled properly with the same App Groups id, but I've been getting an error in xcode which says, "

'Provisioning Profile: "BUNDLE_ID" doesn't include the com.apple.developer.security.application-groups entitlement.' Try Again

But the identifiers do have the App Group id enabled. I have tried automatic signing, manual signing with generated profiles, unchecking and rechecking auto-signing, removing and re-adding the group capability. Creating a new bundle id from scratch, creating a new group id from scratch. Always I get the error. I've really pulled my hair out troubleshooting this and would appreciate support.

I'm happy to answer and questions or share details. Thank you.

You definitely want to use automatic code signing for this stuff (-:

Try this:

  1. In Signing & Capabilities, enable automatic code signing on both targets.
  2. Then remove the App Groups capability from each target.
  3. Select a real device as a run destination and choose Product > Build. I’d expect that to work (-:
  4. Back in Signing & Capabilities, add the App Groups capability to the app target.
  5. And enable the relevant group from the list shown by that capability.
  6. Try building again.
  7. Repeat steps 4 through 6 for the widget target.

How far do you get? And if things fail, what error do you see?

Also, what version of Xcode are you using?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Issue with iOS group entitlements being recognized
 
 
Q