Skip to content


Subversion checkout URL

You can clone with
Download ZIP


iCloud Time Out #445

wants to merge 1 commit into from

3 participants


Do the same check as in setDefaultStoreCoordinator so it won't crash if no persistent stores exists.


After that I check if the persistent store is set and I know that iCloud timed out.


Is there anyone who can merge this?


Given the age of this issue, and the volume of issues we have to work through, I've decided to close this alongside a number of other older issues.

If you can still replicate the issue under the latest in-development version of MagicalRecord (3.0 at the time of writing), please feel free to re-open and one of @magicalpanda/team-magicalrecord will take another look. Thanks!

@tonyarnold tonyarnold closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 3, 2013
  1. @flambert

    Do the same check as in setDefaultStoreCoordinator so it won't crash …

    flambert authored
    …if no persistent stores exists
This page is out of date. Refresh to see the latest.
2  MagicalRecord/Categories/NSPersistentStoreCoordinator+MagicalRecord.m
@@ -217,7 +217,7 @@ - (void) MR_addiCloudContainerID:(NSString *)containerID contentNameKey:(NSStrin
[self unlock];
dispatch_async(dispatch_get_main_queue(), ^{
- if ([NSPersistentStore MR_defaultPersistentStore] == nil)
+ if ([[self persistentStores] count] && [NSPersistentStore MR_defaultPersistentStore] == nil)
[NSPersistentStore MR_setDefaultPersistentStore:[[self persistentStores] objectAtIndex:0]];
Something went wrong with that request. Please try again.