Closed walsht closed 10 years ago
What is the modelURL? Is that the URL for your store's model momd file? How have you linked to Ensembles? Have you included the file CDEEventStoreModel.xcdatamodeld as a resource in your project? You need to do that.
I had the same issue. It was that I did not turn off the shouldAutoCreateManagedObjectModel in magical records. Took me 2 hours to figure it out, but it was in the example code :) At least I had a chance to have a closer look on the framework.
The book covers this in the Quick Start guide under "Using Ensembles with Magical Record" too.
But if you are too eager to start using it, you might skip some lines of the simple code :) :) Anyway, it turned out I can't use it in my own project :(
Any particular reason you couldn't use it? Just interested.
I have a large dataset (> 30k entries from the past 2.5 months ). I have integrated your great framework, but
I know these issues might caused by me, but I have developed this app for almost 3 months, and I'm about to release it soon, so I don't want to spend more time on this until I do not get the first feedbacks. Anyway, it works so I will continue to investigate it in the future.
Btw, I can not get the demo app (download form AppStore) working with iCloud @ iOS 8 (iPad 3rd, iPhone 5). Dropbox sync is working, but not iCloud.
I see. Yes, that is quite a bit of data. You will probably have to work hard to make it work OK with whatever sync you decide to use.
Some things that might help:
I will investigate the iCloud issue in Idiomatic. Thanks for pointing it out.
Drew
I am trying to use MagicalRecord with ensembles and running into a error I can't get past.
Set up my stores like this...
[MagicalRecord setupCoreDataStackWithAutoMigratingSqliteStoreNamed:databaseName];
Initalize ensemble
_ensemble = [[CDEPersistentStoreEnsemble alloc] initWithEnsembleIdentifier:@"MainStore" persistentStorePath:[NSPersistentStore MR_urlForStoreName:@"SwimBikeRunSpeeds.sqlite"].path managedObjectModelURL:modelURL cloudFileSystem:_cloudFileSystem];
when I call
[[self ensemble] leechPersistentStoreWithCompletion:
I get this error:
Error Domain=NSCocoaErrorDomain Code=134130 "The operation couldn’t be completed. (Cocoa error 134130.)" ... }, reason=Can't find model for source store}
Any help resolving this would be appreciated.
Thanks, Tim