UbiquityStoreManager icon indicating copy to clipboard operation
UbiquityStoreManager copied to clipboard

Some issues when enabling iCloud

Open NorbNorb opened this issue 10 years ago • 4 comments

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

  1. While being disconnected from iCloud generate some data.
  2. Hit the Push button. It will delete the whole cloud container and then set cloud enabled.
  3. 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. bildschirmfoto 2014-07-22 um 08 52 04
  4. 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?

NorbNorb avatar Jul 22 '14 07:07 NorbNorb

Bing ;)

NorbNorb avatar Aug 04 '14 10:08 NorbNorb

Sorry to ask again, but are there any chances to find a solution to this issue? :) Thanks, Norbert

NorbNorb avatar Aug 11 '14 09:08 NorbNorb

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

ChristianRo avatar Aug 13 '14 06:08 ChristianRo

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.

lhunath avatar Aug 14 '14 13:08 lhunath