SugarRecord icon indicating copy to clipboard operation
SugarRecord copied to clipboard

The value passed for NSPersistentStoreUbiquitousContentURLKey cannot be the same as the store URL

Open rshev opened this issue 8 years ago • 1 comments

When initializing CoreDataiCloudStorage. You're clearly setting storeURL and ContentURL to the same value in cdiCloudInitializeStore.

Full log:

2016-04-12 16:12:17.213 testCoreData[92333:18177441] CoreData: error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///Users/asdfgh1/Library/Developer/CoreSimulator/Devices/D838493D-0303-4CCC-ADDD-57334A2CD98B/data/Library/Mobile%20Documents/iCloud~com~xxx~yyy/Path/ options:{
    NSInferMappingModelAutomaticallyOption = 1;
    NSMigratePersistentStoresAutomaticallyOption = 1;
    NSPersistentStoreUbiquitousContentNameKey = MyDb;
    NSPersistentStoreUbiquitousContentURLKey = "file:///Users/asdfgh1/Library/Developer/CoreSimulator/Devices/D838493D-0303-4CCC-ADDD-57334A2CD98B/data/Library/Mobile%20Documents/iCloud~com~xxx~yyy/Path/";
    NSSQLitePragmasOption =     {
        WAL = "journal_mode";
    };
} ... returned error Error Domain=NSCocoaErrorDomain Code=134311 "The value passed for NSPersistentStoreUbiquitousContentURLKey cannot be the same as the store URL.

rshev avatar Apr 12 '16 15:04 rshev

Related https://github.com/pepibumur/SugarRecord/issues/226

pepicrft avatar May 08 '16 11:05 pepicrft