SugarRecord
SugarRecord copied to clipboard
The value passed for NSPersistentStoreUbiquitousContentURLKey cannot be the same as the store URL
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.
Related https://github.com/pepibumur/SugarRecord/issues/226