UbiquityStoreManager
UbiquityStoreManager copied to clipboard
Some issues when enabling iCloud
Hi,
I have found some weird issues in my own project when I try to implement a push / pull / merge. To demonstrate them, I've uploaded a modified demo project.
Could you please check the following?
1. Folder recreation after clearing iCloud / Clearing iCloud container doesn't work
- While being disconnected from iCloud generate some data.
- Hit the Push button. It will delete the whole cloud container and then set cloud enabled.
- Hit the Clear iCloud button. It will first delete the cloud container but then recreate a new empty folder within the
CloudLogs
folder before switching to the local store. - If you now hit push again it will try to clear the cloud container but the following enabling of iCloud won't work. You will have to hit Clear iCloud once more to clear the store.
So the clearing of the cloud container seems to be broken. It will leave an empty folder. Enabling cloud functionality behaves abnormal in this state.
Workaround: I've found that waiting for e.g. 2 seconds between clearing and enabling cloud is a feasible workaround. I've added some lines as a comment in the MasterViewController.m
file for showing that.
2. Pull
If you hit the Pull button it takes a handful of seconds to complete. The method deleteCloudContainerLocalOnly:
needs some time. I've marked the lines in code. What's the cause of this?
Bing ;)
Sorry to ask again, but are there any chances to find a solution to this issue? :) Thanks, Norbert
Hey Norb, i´ve the same issue in my project. Ihunath check the sample project NorbNorb attached in this post please. This shows the issue in a simple way.
Please give us feedback how to solve push, pull and merge.
Thank you. Christian
I'm sorry for the delay in response; I'm currently on holiday and unable to help much. I'll try to find the time in my off hours in a few weeks to look into these issues.