You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Looks ok however I didn't check it. This solution is based on passing whole bundle during init.
While my private fix is based on passing only bundle id in options.
Here is my private fix: #286
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
The text was updated successfully, but these errors were encountered: