I am attempting to create an object store with a seed database of about 500 MB. Here is how I do it:
self.restObjectStore = [RKManagedObjectStore objectStoreWithStoreFilename:@"DB.sqlite"
usingSeedDatabaseName:@"SEED-DB.sqlite"
managedObjectModel:self.managedObjectModel
delegate:nil];
However whenever I do an adhoc deploy the application crashes with the ” failed to launch in time” error. (Note: No problems occur when I try this with XCode)
Is there a way to improve performance of this operation? What can I do to avoid this error? Is it a too big seed database?
That’s a pretty huge seed database! I would suggest first trying out with a smaller one to make sure it’s not caused by it’s huge size. The RKTwitterCoreData exemple has a good exemple on how to seed an initial store:
https://github.com/RestKit/RestKit/blob/master/Examples/RKTwitterCoreData/Classes/RKTwitterAppDelegate.m