I'm trying to use the NSUbiquitousKeyValueStore to store a value, but I am getting this error down below.
The local UserDefaults are working, but the iCloud Key-Value-Store isn't.
Console Output
2023-02-14 13:28:02.666612+0000 MyApp[32459:8679108] [Connection] BUG IN KVS: Tried to access store that is unknown to the system (<TeamID>.dev.LuegM.MyApp). Please send this bug to NSUbiquitousKeyValueStore.
2023-02-14 13:28:02.710684+0000 MyApp[32459:8679452] [Connection] Error synchronizing with cloud for store <(<TeamID>.dev.LuegM.DiveApp)>: Error Domain=SyncedDefaults Code=101010 "Tried to access unknown store <TeamID>.dev.LuegM.DiveApp" UserInfo={NSLocalizedDescription=Tried to access unknown store <TeamID>.dev.LuegM.DiveApp}
MyApp.entitlements
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.dev.luegm.MarineM.Cloud</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudKit</string>
</array>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
</dict>
Is this perhaps related to the fact that I am using this configuration as a CloudKit container?
iCloud Capability