I have what seems like a unique problem. My NSUbiquitousKeyValueStore just doesn't work between runs in the simulator. That is, I’m not even talking about iCloud synchronization or something like that, I can’t get it to pass the simple test below!
var kvs = NSUbiquitousKeyValueStore.defaultStore()
if kvs.synchronize() == true {
println("kvs synchronised")
}
println(kvs.stringForKey("test"))
println(kvs.setString("WORKED", forKey:"test"))
println(kvs.stringForKey("test"))
Every time I run the iOS 8 app in the simulator, it prints the same message.
kvs synchronised
nil
WORKED
Yes, iCloud is configured and enabled in Rights. Yes, even the "Key Value Store" is being tested. Yes, the Simulator account is configured for iCloud sync.
It seems that even the local SQLite DB database gets clogged between each run? I'm at a loss.
source
share