Skip to content

Some issues when enabling iCloud #70

@NorbNorb

Description

@NorbNorb

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions