UbiquityStoreManager
UbiquityStoreManager copied to clipboard
Unstable & losing data
Hi,
I can't get UniquityStoreManager to consistently load the iCloud store (it says it has) but all the previous data, that was there only seconds ago has vanished.
Also, on a device with iCloud disabled; it loaded fine using the local store, I added some data, quit, ran it up again, and had no MOC, with this in the console;
2014-06-16 13:24:20.408 XXXXXXXXX[29580:1403] UbiquityStoreManager: Loading store...
2014-06-16 13:24:20.410 XXXXXXXXX[29580:1403] UbiquityStoreManager: Will load local store.
2014-06-16 13:24:20.413 XXXXXXXXX[29580:1403] UbiquityStoreManager: Clearing stores...
2014-06-16 13:24:20.415 XXXXXXXXX[29580:1403] UbiquityStoreManager: Will clear stores. Notifying application to reset its UI.
2014-06-16 13:24:20.428 XXXXXXXXX[29580:1403] UbiquityStoreManager: Loading store: UbiquityStore.sqlite
2014-06-16 13:24:20.510 XXXXXXXXX[29580:1403] UbiquityStoreManager: Successfully loaded local store.
2014-06-16 13:24:20.514 XXXXXXXXX[29580:1403] UbiquityStoreManager: Reloading store...
2014-06-16 13:24:20.516 XXXXXXXXX[29580:1403] UbiquityStoreManager: Cannot load cloud store: User is not logged into iCloud. Falling back to local store.
2014-06-16 13:24:20.518 XXXXXXXXX[29580:1403] UbiquityStoreManager: Switching cloud disabled -> enabled
2014-06-16 13:24:20.520 XXXXXXXXX[29580:1403] UbiquityStoreManager: Reloading store...
2014-06-16 13:24:20.524 XXXXXXXXX[29580:1403] UbiquityStoreManager: Cannot load cloud store: User is not logged into iCloud. Falling back to local store.
2014-06-16 13:24:20.527 XXXXXXXXX[29580:1403] UbiquityStoreManager: Finished loading local store (UbiquityStoreErrorCauseNoError). Notifying application to refresh its UI.
2014-06-16 13:24:20.602 XXXXXXXXX[29580:60b] UbiquityStoreManager: Identity token changed: (null) -> (null)
2014-06-16 13:24:20.806 XXXXXXXXX[29580:1403] UbiquityStoreManager: Reloading store...
2014-06-16 13:24:20.808 XXXXXXXXX[29580:1403] UbiquityStoreManager: Cannot load cloud store: User is not logged into iCloud. Falling back to local store.
2014-06-16 13:25:08.398 XXXXXXXXX[29580:7d03] UbiquityStoreManager: Reloading store...
2014-06-16 13:25:08.399 XXXXXXXXX[29580:7d03] UbiquityStoreManager: Cannot load cloud store: User is not logged into iCloud. Falling back to local store.
In order to get my MOC back and stop the crashing, I had to remove the app and re-install. At the moment I am looking at removing UbiquityStoreManager and just resorting to using raw CoreData with iCloud API calls.