Profile missing ICloudContainerIdentifiers entitlements

I have enabled iCloud capability for my app and regenerated my profile but when uploading my app in XCode I am getting the following error with the new profile.

"Profile doesn't include the ICloudContainerIdentifiers entitlement."

What am I doing wrong?

Thanks