Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rshev opened this issue Apr 12, 2016 · 1 comment

Comments

@rshev
Copy link

rshev commented Apr 12, 2016

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.
@pepicrft pepicrft self-assigned this Apr 13, 2016
@pepicrft
Copy link

pepicrft commented May 8, 2016

Related #226

@pepicrft pepicrft removed their assignment May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants