I’m trying to migrate some data away from iCloud, so I figured I would simply delete the key once I saved it in the new location then I would know if the value no longer needed migration if the value was no longer in iCloud.
After I remove that, if I check , the key is empty:
NSUbiquitousKeyValueStore.default.object(forKey: objectKey) == nil
All good, but when I close and reopen the app, the key has the original value in it before I removed it. I even tried running synchronize after removeObject():
But no good, the key’s value keeps returning after I restart the app. Thoughts?