How do you specify the cloud container in a provisioning profile?

I want to share a container across an iOS and a macOS app. Problem is, when I specify the shared container in my app's entitlements file, which I have set up in the app identifier, I get this error when selecting a provisioning profile:


Provisioning profile "..." doesn't match the entitlements file's value for the com.apple.developer.ubiquity-kvstore-identifier entitlement.

I've created the provisioning profile manually, but I can't find any way to edit any of its settings.
How do you specify the cloud container in a provisioning profile?
 
 
Q