Hi all,
I want to use Couchbase lite as my database in an iOS app. CBLIncrementalStore is great since I can keep my Core Data layer as is
BUT, I have a problem with it. With CBLIncrementalStore, all NSFetchResultsController (FRC) are not fully functional. FRCs used with a predicate that filters on relationships doesnât return anything. More details:
- Take Couchbaseâs sample code called Recipes
- add a NSPredicate on recipes filtering on a recipeType
-> the request doesnât return anything.
So I tried the 1.1 version of couchbase lite by taking the same project and adding the new framwork files and the new CBLIncrementalStore but now the app doesnât work anymore (the list of recipes is empty).
I tried on my project that worked with 1.0 and the app crashes with this crash log:
CoreData: error: -addPersistentStoreWithType:CBLIncrementalStore configuration:(null) URL:file:///Users/florion/Library/Developer/CoreSimulator/Devices/BB6F7BB0-B1EF-4C7A-898A-61E1310B90B6/data/Containers/Data/Application/B005D3AE-DB85-4261-989F-96C6390500C8/Library/Application%20Support/myApp/database694.sqlite options:{
NSInferMappingModelAutomaticallyOption = 1;
NSMigratePersistentStoresAutomaticallyOption = 1;
} ... returned error Error Domain=CBLISErrorDomain Code=6 "Could not create database" UserInfo=0x786aa5a0 {NSUnderlyingError=0x786ab970 "400 Invalid database/document/revision ID", NSLocalizedDescription=Could not create database} with userInfo dictionary {
NSLocalizedDescription = "Could not create database";
NSUnderlyingError = "Error Domain=CBLHTTP Code=400 \"400 Invalid database/document/revision ID\" UserInfo=0x786ab120 {NSLocalizedFailureReason=Invalid database/document/revision ID, NSLocalizedDescription=400 Invalid database/document/revision ID}";
}
Am I doing something wrong ?
Thanks