-
Notifications
You must be signed in to change notification settings - Fork 237
Open
Labels
Description
There is an issue when your database is delivered thru framework.
During migration method:
- (BOOL)loadMetadata:(NSError **)error {
calls:
[bundles addObject:[NSBundle mainBundle]];
as a result it can't find model delivered in framework bundle and migration fails.
It should use:
[[NSBundle bundleForClass:[self class]]
or
[NSBundle bundleWithIdentifier:modelBundleIdentifier];
where modelBundleIdentifier is being passed from application thru options dictionary