More help with CloudKit please

Hi, I'm trying to add CloudKit to my app.

I've added a provisioning profile to the app, after enabling the required entitlements.

When I run the app, I get the following message:

Error Domain=SyncedDefaults Code=101010 
"Tried to access unknown store xxxxxxxxx.com.bohtech.xxxxxxxx" 
UserInfo={NSLocalizedDescription=Tried to access unknown store

I can see the container through the Apple website. I can see the Private Zone. I cannot get further than that. I've tried rebuilding the entitlement file, restarting my computer. Disabling and re-enabling the container through Xcode. Can someone out there point me to any help?

Thanks in advance.