Note that there are some explanatory texts on larger screens.

plurals
  1. POSIGABRT when calling [MagicalRecord setupCoreDataStackWithStoreNamed]
    text
    copied!<p>I'm new to "Magical Record" and pretty new to iOS programming in general. I'm just trying to get things set up. I've followed the instructions in <a href="http://yannickloriot.com/2012/03/magicalrecord-how-to-make-programming-with-core-data-pleasant/" rel="nofollow">http://yannickloriot.com/2012/03/magicalrecord-how-to-make-programming-with-core-data-pleasant/</a>, but instead of:</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [MagicalRecordHelpers setupCoreDataStackWithStoreNamed:@"MyDatabase.sqlite"]; // ... return YES; } </code></pre> <p>I think I'm using a newer version which changes the AppDelegate to:</p> <pre><code>@implementation LSAppDelegate @synthesize window = _window; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ [MagicalRecord setupCoreDataStackWithStoreNamed:@"MyDatabase.sqlite"]; return YES; } - (void)applicationWillTerminate:(UIApplication *)application{ [MagicalRecord cleanUp]; } @end </code></pre> <p>When running, I get a SIGABRT at:</p> <pre><code>+ (NSManagedObjectModel *) MR_mergedObjectModelFromMainBundle; { return [self mergedModelFromBundles:nil]; } </code></pre> <p>The stack trace looks like:</p> <pre><code>#0 0x00011f7e in +[NSManagedObjectModel(MagicalRecord) MR_mergedObjectModelFromMainBundle] at /Developer/projects/demo/MagicalRecord/Categories/NSManagedObjectModel+MagicalRecord.m:33 #1 0x00011eb4 in +[NSManagedObjectModel(MagicalRecord) MR_defaultManagedObjectModel] () #2 0x000147ca in +[NSPersistentStoreCoordinator(MagicalRecord) MR_coordinatorWithSqliteStoreNamed:withOptions:] () #3 0x000148fa in +[NSPersistentStoreCoordinator(MagicalRecord) MR_coordinatorWithSqliteStoreNamed:] () #4 0x00016546 in +[MagicalRecord(Setup) setupCoreDataStackWithStoreNamed:] () #5 0x000026eb in -[LSAppDelegate application:didFinishLaunchingWithOptions:] () </code></pre> <p>I have no idea what I did wrong or what I can do to fix it. Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload