ios 4.3 Problems #366

Closed
vanbungkring opened this Issue Jan 7, 2013 · 2 comments

Projects

None yet

3 participants

@vanbungkring

hi All. now i'm developing apps wich use MagicalRecord 1.8.3 , ok straight to the point , here's my code:

             NSManagedObjectContext *localContext    = [NSManagedObjectContext MR_defaultContext];
    // Create a new Person in the current thread context
    GaruSet *person = [GaruSet MR_createInContext:localContext];
    NSString *A=@"123123123123123123";
    person.authkey=A;
    [localContext MR_save];

and i get an error:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'GaruSet''
*** Call stack at first throw:
(
0 CoreFoundation 0x0134b5a9 exceptionPreprocess + 185
1 libobjc.A.dylib 0x01090313 objc_exception_throw + 44
2 CoreData 0x00994ebb +[NSEntityDescription entityForName:inManagedObjectContext:] + 187
3 CoreData 0x009cc9eb +[NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext:] + 59
4 Garuset 0x00012715 +[NSManagedObject(MagicalRecord) MR_createInContext:] + 197
5 Garuset 0x00006f80 -[loginViewController login] + 2080
6 UIKit 0x001b44fd -[UIApplication sendAction:to:from:forEvent:] + 119
7 UIKit 0x00244799 -[UIControl sendAction:to:forEvent:] + 67
8 UIKit 0x00246c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
9 UIKit 0x002457d8 -[UIControl touchesEnded:withEvent:] + 458
10 UIKit 0x001d8ded -[UIWindow _sendTouchesForEvent:] + 567
11 UIKit 0x001b9c37 -[UIApplication sendEvent:] + 447
12 UIKit 0x001bef2e _UIApplicationHandleEvent + 7576
13 GraphicsServices 0x01c81992 PurpleEventCallback + 1550
14 CoreFoundation 0x0132c944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
+ 52
15 CoreFoundation 0x0128ccf7 __CFRunLoopDoSource1 + 215
16 CoreFoundation 0x01289f83 __CFRunLoopRun + 979
17 CoreFoundation 0x01289840 CFRunLoopRunSpecific + 208
18 CoreFoundation 0x01289761 CFRunLoopRunInMode + 97
19 GraphicsServices 0x01c801c4 GSEventRunModal + 217
20 GraphicsServices 0x01c80289 GSEventRun + 115
21 UIKit 0x001c2c93 UIApplicationMain + 1160
22 Garuset 0x00002c8a main + 170
23 Garuset 0x00002b95 start + 53
)
terminate called throwing an exception(lldb)

pls help me on this, very appreciate your help

Owner

This error means that your core data entity, garuset, is not in your data
model. Make sure the class name field under the entity name field is set in
your core data model.

Sent from my iPad

On Jan 7, 2013, at 8:00 AM, Arie notifications@github.com wrote:

hi All. now i'm developing apps wich use MagicalRecord 1.8.3 , ok straight
to the point , here's my code:

         NSManagedObjectContext *localContext    =

[NSManagedObjectContext MR_defaultContext];
// Create a new Person in the current thread context
GaruSet *person = [GaruSet MR_createInContext:localContext];
NSString *A=@"123123123123123123";
person.authkey=A;
[localContext MR_save];

and i get an error:

*** Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: '+entityForName: could not
locate an NSManagedObjectModel for entity name 'GaruSet''
*** Call stack at first throw:
(
0 CoreFoundation 0x0134b5a9 *exceptionPreprocess + 185
1 libobjc.A.dylib 0x01090313 objc_exception_throw + 44
2 CoreData 0x00994ebb +[NSEntityDescription
entityForName:inManagedObjectContext:] + 187
3 CoreData 0x009cc9eb +[NSEntityDescription
insertNewObjectForEntityForName:inManagedObjectContext:] + 59
4 Garuset 0x00012715 +[NSManagedObject(MagicalRecord) MR_createInContext:]

  • 197
    5 Garuset 0x00006f80 -[loginViewController login] + 2080
    6 UIKit 0x001b44fd -[UIApplication sendAction:to:from:forEvent:] + 119
    7 UIKit 0x00244799 -[UIControl sendAction:to:forEvent:] + 67
    8 UIKit 0x00246c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:]
  • 527
    9 UIKit 0x002457d8 -[UIControl touchesEnded:withEvent:] + 458
    10 UIKit 0x001d8ded -[UIWindow _sendTouchesForEvent:] + 567
    11 UIKit 0x001b9c37 -[UIApplication sendEvent:] + 447
    12 UIKit 0x001bef2e _UIApplicationHandleEvent + 7576
    13 GraphicsServices 0x01c81992 PurpleEventCallback + 1550
    14 CoreFoundation 0x0132c944
    __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION* + 52
    15 CoreFoundation 0x0128ccf7 __CFRunLoopDoSource1 + 215
    16 CoreFoundation 0x01289f83 __CFRunLoopRun + 979
    17 CoreFoundation 0x01289840 CFRunLoopRunSpecific + 208
    18 CoreFoundation 0x01289761 CFRunLoopRunInMode + 97
    19 GraphicsServices 0x01c801c4 GSEventRunModal + 217
    20 GraphicsServices 0x01c80289 GSEventRun + 115
    21 UIKit 0x001c2c93 UIApplicationMain + 1160
    22 Garuset 0x00002c8a main + 170
    23 Garuset 0x00002b95 start + 53
    )
    terminate called throwing an exception(lldb)

pls help me on this, very appreciate your help


Reply to this email directly or view it on
GitHubhttps://github.com/magicalpanda/MagicalRecord/issues/366.

ahh done thanks man

@casademora casademora was assigned Jan 14, 2013
@tonyarnold tonyarnold closed this Jan 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment