Hello, I had the same problem and I solved, the iCloud KVS (com.apple.developer.ubiquity-kvstore-identifier) value is located in the provisioning profile (~/Library/MobileDevice/ProvisioningProfiles/{your_provisioning_profile}) that value must be updated in the entitlements file.
I hope this help you
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: