Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我的iPhone core data应用程序在第一次运行时运行良好,但之后运行时崩溃_Iphone_Objective C_Core Data - Fatal编程技术网

我的iPhone core data应用程序在第一次运行时运行良好,但之后运行时崩溃

我的iPhone core data应用程序在第一次运行时运行良好,但之后运行时崩溃,iphone,objective-c,core-data,Iphone,Objective C,Core Data,我的应用程序基于两个类:Jam和jamiitem,每个类都有一个用于显示/添加项目的TableViewController。 2010-09-29 07:20:00.443 Jams[12451:207] Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectCo

我的应用程序基于两个类:
Jam
jamiitem
,每个类都有一个用于显示/添加项目的TableViewController。

2010-09-29 07:20:00.443 Jams[12451:207] Serious application error.  Exception was caught during Core Data change processing.  This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.  [<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name. with userInfo {
        NSTargetObjectUserInfoKey = "<UINavigationItem: 0x5b4dc30>";
        NSUnknownUserInfoKey = name;
    }
    2010-09-29 07:20:00.446 Jams[12451:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.'
    *** Call stack at first throw:
    (
        0   CoreFoundation                      0x02577919 __exceptionPreprocess + 185
        1   libobjc.A.dylib                     0x026c55de objc_exception_throw + 47
        2   CoreFoundation                      0x02577851 -[NSException raise] + 17
        3   Foundation                          0x000d96b1 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 279
        4   Foundation                          0x00040868 _NSGetUsingKeyValueGetter + 147
        5   Foundation                          0x0003fd2e -[NSObject(NSKeyValueCoding) valueForKey:] + 278
        6   Foundation                          0x00043535 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 381
        7   Foundation                          0x000f7c4f -[NSSortDescriptor compareObject:toObject:] + 128
        8   CoreData                            0x0237cb5e +[NSFetchedResultsController(PrivateMethods) _insertIndexForObject:inArray:lowIdx:highIdx:sortDescriptors:] + 286
        9   CoreData                            0x0237d1b2 -[NSFetchedResultsController(PrivateMethods) _postprocessInsertedObjects:] + 402
        10  CoreData                            0x023831bc -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 1804
        11  Foundation                          0x00035c1d _nsnote_callback + 145
        12  CoreFoundation                      0x0254fcf9 __CFXNotificationPost_old + 745
        13  CoreFoundation                      0x024cf11a _CFXNotificationPostNotification + 186
        14  Foundation                          0x0002b7c2 -[NSNotificationCenter postNotificationName:object:userInfo:] + 134
        15  CoreData                            0x022bf519 -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 89
        16  CoreData                            0x0232eb33 -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 259
        17  CoreData                            0x022a1f78 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 1352
        18  CoreData                            0x022dba15 -[NSManagedObjectContext save:] + 149
        19  JamsApp                             0x000064b3 -[JamsListTableViewController insertJamItem:] + 168
        20  JamsApp                             0x00006405 -[JamsListTableViewController selectedJamItem:] + 43
        21  JamsApp                             0x00003f41 -[JamItemListTableViewController tableView:didSelectRowAtIndexPath:] + 143
        22  UIKit                               0x0033d718 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
        23  UIKit                               0x00333ffe -[UITableView _userSelectRowAtIndexPath:] + 219
        24  Foundation                          0x0004acea __NSFireDelayedPerform + 441
        25  CoreFoundation                      0x02558d43 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
        26  CoreFoundation                      0x0255a384 __CFRunLoopDoTimer + 1364
        27  CoreFoundation                      0x024b6d09 __CFRunLoopRun + 1817
        28  CoreFoundation                      0x024b6280 CFRunLoopRunSpecific + 208
        29  CoreFoundation                      0x024b61a1 CFRunLoopRunInMode + 97
        30  GraphicsServices                    0x02ddc2c8 GSEventRunModal + 217
        31  GraphicsServices                    0x02ddc38d GSEventRun + 115
        32  UIKit                               0x002d9b58 UIApplicationMain + 1160
        33  JamsApp                             0x00001c0c main + 102
        34  JamsApp                             0x00001b9d start + 53
    )
    terminate called after throwing an instance of 'NSException'
该模型包含两个类的两个实体,它们之间存在可选的一对一关系
JamItem
有一个名称字段和一个价格字段<代码>堵塞有一个数量字段。这两个实体有相应的
NSManagedObject
类。

2010-09-29 07:20:00.443 Jams[12451:207] Serious application error.  Exception was caught during Core Data change processing.  This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.  [<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name. with userInfo {
        NSTargetObjectUserInfoKey = "<UINavigationItem: 0x5b4dc30>";
        NSUnknownUserInfoKey = name;
    }
    2010-09-29 07:20:00.446 Jams[12451:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.'
    *** Call stack at first throw:
    (
        0   CoreFoundation                      0x02577919 __exceptionPreprocess + 185
        1   libobjc.A.dylib                     0x026c55de objc_exception_throw + 47
        2   CoreFoundation                      0x02577851 -[NSException raise] + 17
        3   Foundation                          0x000d96b1 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 279
        4   Foundation                          0x00040868 _NSGetUsingKeyValueGetter + 147
        5   Foundation                          0x0003fd2e -[NSObject(NSKeyValueCoding) valueForKey:] + 278
        6   Foundation                          0x00043535 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 381
        7   Foundation                          0x000f7c4f -[NSSortDescriptor compareObject:toObject:] + 128
        8   CoreData                            0x0237cb5e +[NSFetchedResultsController(PrivateMethods) _insertIndexForObject:inArray:lowIdx:highIdx:sortDescriptors:] + 286
        9   CoreData                            0x0237d1b2 -[NSFetchedResultsController(PrivateMethods) _postprocessInsertedObjects:] + 402
        10  CoreData                            0x023831bc -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 1804
        11  Foundation                          0x00035c1d _nsnote_callback + 145
        12  CoreFoundation                      0x0254fcf9 __CFXNotificationPost_old + 745
        13  CoreFoundation                      0x024cf11a _CFXNotificationPostNotification + 186
        14  Foundation                          0x0002b7c2 -[NSNotificationCenter postNotificationName:object:userInfo:] + 134
        15  CoreData                            0x022bf519 -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 89
        16  CoreData                            0x0232eb33 -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 259
        17  CoreData                            0x022a1f78 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 1352
        18  CoreData                            0x022dba15 -[NSManagedObjectContext save:] + 149
        19  JamsApp                             0x000064b3 -[JamsListTableViewController insertJamItem:] + 168
        20  JamsApp                             0x00006405 -[JamsListTableViewController selectedJamItem:] + 43
        21  JamsApp                             0x00003f41 -[JamItemListTableViewController tableView:didSelectRowAtIndexPath:] + 143
        22  UIKit                               0x0033d718 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
        23  UIKit                               0x00333ffe -[UITableView _userSelectRowAtIndexPath:] + 219
        24  Foundation                          0x0004acea __NSFireDelayedPerform + 441
        25  CoreFoundation                      0x02558d43 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
        26  CoreFoundation                      0x0255a384 __CFRunLoopDoTimer + 1364
        27  CoreFoundation                      0x024b6d09 __CFRunLoopRun + 1817
        28  CoreFoundation                      0x024b6280 CFRunLoopRunSpecific + 208
        29  CoreFoundation                      0x024b61a1 CFRunLoopRunInMode + 97
        30  GraphicsServices                    0x02ddc2c8 GSEventRunModal + 217
        31  GraphicsServices                    0x02ddc38d GSEventRun + 115
        32  UIKit                               0x002d9b58 UIApplicationMain + 1160
        33  JamsApp                             0x00001c0c main + 102
        34  JamsApp                             0x00001b9d start + 53
    )
    terminate called after throwing an instance of 'NSException'
这两个列表都基于表列表视图控制器,并以Apple站点上的Recipes示例为模型。
JamListTableViewController
显示添加到列表中的所有
jamiitem
实例。单击“添加”时,将创建一个新的
JamItemListTableViewController
实例,并将其推送到nav堆栈上。这将列出已创建的
JamItem
实例。当选择
jamiitem
时,
-(void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath
方法创建
jamiitem
的实例,并通过委托将其传递回
JamListTableViewController
。然后创建一个新的
Jam
实例,并将
JamItem
添加到其中,然后保存。

2010-09-29 07:20:00.443 Jams[12451:207] Serious application error.  Exception was caught during Core Data change processing.  This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.  [<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name. with userInfo {
        NSTargetObjectUserInfoKey = "<UINavigationItem: 0x5b4dc30>";
        NSUnknownUserInfoKey = name;
    }
    2010-09-29 07:20:00.446 Jams[12451:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.'
    *** Call stack at first throw:
    (
        0   CoreFoundation                      0x02577919 __exceptionPreprocess + 185
        1   libobjc.A.dylib                     0x026c55de objc_exception_throw + 47
        2   CoreFoundation                      0x02577851 -[NSException raise] + 17
        3   Foundation                          0x000d96b1 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 279
        4   Foundation                          0x00040868 _NSGetUsingKeyValueGetter + 147
        5   Foundation                          0x0003fd2e -[NSObject(NSKeyValueCoding) valueForKey:] + 278
        6   Foundation                          0x00043535 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 381
        7   Foundation                          0x000f7c4f -[NSSortDescriptor compareObject:toObject:] + 128
        8   CoreData                            0x0237cb5e +[NSFetchedResultsController(PrivateMethods) _insertIndexForObject:inArray:lowIdx:highIdx:sortDescriptors:] + 286
        9   CoreData                            0x0237d1b2 -[NSFetchedResultsController(PrivateMethods) _postprocessInsertedObjects:] + 402
        10  CoreData                            0x023831bc -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 1804
        11  Foundation                          0x00035c1d _nsnote_callback + 145
        12  CoreFoundation                      0x0254fcf9 __CFXNotificationPost_old + 745
        13  CoreFoundation                      0x024cf11a _CFXNotificationPostNotification + 186
        14  Foundation                          0x0002b7c2 -[NSNotificationCenter postNotificationName:object:userInfo:] + 134
        15  CoreData                            0x022bf519 -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 89
        16  CoreData                            0x0232eb33 -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 259
        17  CoreData                            0x022a1f78 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 1352
        18  CoreData                            0x022dba15 -[NSManagedObjectContext save:] + 149
        19  JamsApp                             0x000064b3 -[JamsListTableViewController insertJamItem:] + 168
        20  JamsApp                             0x00006405 -[JamsListTableViewController selectedJamItem:] + 43
        21  JamsApp                             0x00003f41 -[JamItemListTableViewController tableView:didSelectRowAtIndexPath:] + 143
        22  UIKit                               0x0033d718 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
        23  UIKit                               0x00333ffe -[UITableView _userSelectRowAtIndexPath:] + 219
        24  Foundation                          0x0004acea __NSFireDelayedPerform + 441
        25  CoreFoundation                      0x02558d43 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
        26  CoreFoundation                      0x0255a384 __CFRunLoopDoTimer + 1364
        27  CoreFoundation                      0x024b6d09 __CFRunLoopRun + 1817
        28  CoreFoundation                      0x024b6280 CFRunLoopRunSpecific + 208
        29  CoreFoundation                      0x024b61a1 CFRunLoopRunInMode + 97
        30  GraphicsServices                    0x02ddc2c8 GSEventRunModal + 217
        31  GraphicsServices                    0x02ddc38d GSEventRun + 115
        32  UIKit                               0x002d9b58 UIApplicationMain + 1160
        33  JamsApp                             0x00001c0c main + 102
        34  JamsApp                             0x00001b9d start + 53
    )
    terminate called after throwing an instance of 'NSException'
当应用程序在模拟器上更新时,我可以完美地运行它,并且第一次使用干净的数据库运行它

JamItemListTableViewController
始终有效,我可以愉快地从列表中添加和删除“jam项”。但是,如果我停止应用程序并重新运行,然后尝试将新的
jamiitem
添加到jam列表(
JamListTableViewController
),当
JamListTableViewController
调用
[jam.managedObjectContext save:&error]
时,它会崩溃,我得到下面的错误,我想这就是它试图按名称排序的地方。

JamItemListTableViewController
中的
NSFetchedResultsController
配置为按名称排序。
JamItemListTableViewController
中的
NSFetchedResultsController
JamItem.name

2010-09-29 07:20:00.443 Jams[12451:207] Serious application error.  Exception was caught during Core Data change processing.  This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.  [<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name. with userInfo {
        NSTargetObjectUserInfoKey = "<UINavigationItem: 0x5b4dc30>";
        NSUnknownUserInfoKey = name;
    }
    2010-09-29 07:20:00.446 Jams[12451:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.'
    *** Call stack at first throw:
    (
        0   CoreFoundation                      0x02577919 __exceptionPreprocess + 185
        1   libobjc.A.dylib                     0x026c55de objc_exception_throw + 47
        2   CoreFoundation                      0x02577851 -[NSException raise] + 17
        3   Foundation                          0x000d96b1 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 279
        4   Foundation                          0x00040868 _NSGetUsingKeyValueGetter + 147
        5   Foundation                          0x0003fd2e -[NSObject(NSKeyValueCoding) valueForKey:] + 278
        6   Foundation                          0x00043535 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 381
        7   Foundation                          0x000f7c4f -[NSSortDescriptor compareObject:toObject:] + 128
        8   CoreData                            0x0237cb5e +[NSFetchedResultsController(PrivateMethods) _insertIndexForObject:inArray:lowIdx:highIdx:sortDescriptors:] + 286
        9   CoreData                            0x0237d1b2 -[NSFetchedResultsController(PrivateMethods) _postprocessInsertedObjects:] + 402
        10  CoreData                            0x023831bc -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 1804
        11  Foundation                          0x00035c1d _nsnote_callback + 145
        12  CoreFoundation                      0x0254fcf9 __CFXNotificationPost_old + 745
        13  CoreFoundation                      0x024cf11a _CFXNotificationPostNotification + 186
        14  Foundation                          0x0002b7c2 -[NSNotificationCenter postNotificationName:object:userInfo:] + 134
        15  CoreData                            0x022bf519 -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 89
        16  CoreData                            0x0232eb33 -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 259
        17  CoreData                            0x022a1f78 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 1352
        18  CoreData                            0x022dba15 -[NSManagedObjectContext save:] + 149
        19  JamsApp                             0x000064b3 -[JamsListTableViewController insertJamItem:] + 168
        20  JamsApp                             0x00006405 -[JamsListTableViewController selectedJamItem:] + 43
        21  JamsApp                             0x00003f41 -[JamItemListTableViewController tableView:didSelectRowAtIndexPath:] + 143
        22  UIKit                               0x0033d718 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
        23  UIKit                               0x00333ffe -[UITableView _userSelectRowAtIndexPath:] + 219
        24  Foundation                          0x0004acea __NSFireDelayedPerform + 441
        25  CoreFoundation                      0x02558d43 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
        26  CoreFoundation                      0x0255a384 __CFRunLoopDoTimer + 1364
        27  CoreFoundation                      0x024b6d09 __CFRunLoopRun + 1817
        28  CoreFoundation                      0x024b6280 CFRunLoopRunSpecific + 208
        29  CoreFoundation                      0x024b61a1 CFRunLoopRunInMode + 97
        30  GraphicsServices                    0x02ddc2c8 GSEventRunModal + 217
        31  GraphicsServices                    0x02ddc38d GSEventRun + 115
        32  UIKit                               0x002d9b58 UIApplicationMain + 1160
        33  JamsApp                             0x00001c0c main + 102
        34  JamsApp                             0x00001b9d start + 53
    )
    terminate called after throwing an instance of 'NSException'
我希望这是有意义的,因为我数周来一直在努力寻找解决办法。我想我可能已经(或没有)释放了一个对象,这会导致
JamItem
列表标记它已经更新,并开始尝试重新排序它的列表。

2010-09-29 07:20:00.443 Jams[12451:207] Serious application error.  Exception was caught during Core Data change processing.  This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.  [<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name. with userInfo {
        NSTargetObjectUserInfoKey = "<UINavigationItem: 0x5b4dc30>";
        NSUnknownUserInfoKey = name;
    }
    2010-09-29 07:20:00.446 Jams[12451:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.'
    *** Call stack at first throw:
    (
        0   CoreFoundation                      0x02577919 __exceptionPreprocess + 185
        1   libobjc.A.dylib                     0x026c55de objc_exception_throw + 47
        2   CoreFoundation                      0x02577851 -[NSException raise] + 17
        3   Foundation                          0x000d96b1 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 279
        4   Foundation                          0x00040868 _NSGetUsingKeyValueGetter + 147
        5   Foundation                          0x0003fd2e -[NSObject(NSKeyValueCoding) valueForKey:] + 278
        6   Foundation                          0x00043535 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 381
        7   Foundation                          0x000f7c4f -[NSSortDescriptor compareObject:toObject:] + 128
        8   CoreData                            0x0237cb5e +[NSFetchedResultsController(PrivateMethods) _insertIndexForObject:inArray:lowIdx:highIdx:sortDescriptors:] + 286
        9   CoreData                            0x0237d1b2 -[NSFetchedResultsController(PrivateMethods) _postprocessInsertedObjects:] + 402
        10  CoreData                            0x023831bc -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 1804
        11  Foundation                          0x00035c1d _nsnote_callback + 145
        12  CoreFoundation                      0x0254fcf9 __CFXNotificationPost_old + 745
        13  CoreFoundation                      0x024cf11a _CFXNotificationPostNotification + 186
        14  Foundation                          0x0002b7c2 -[NSNotificationCenter postNotificationName:object:userInfo:] + 134
        15  CoreData                            0x022bf519 -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 89
        16  CoreData                            0x0232eb33 -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 259
        17  CoreData                            0x022a1f78 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 1352
        18  CoreData                            0x022dba15 -[NSManagedObjectContext save:] + 149
        19  JamsApp                             0x000064b3 -[JamsListTableViewController insertJamItem:] + 168
        20  JamsApp                             0x00006405 -[JamsListTableViewController selectedJamItem:] + 43
        21  JamsApp                             0x00003f41 -[JamItemListTableViewController tableView:didSelectRowAtIndexPath:] + 143
        22  UIKit                               0x0033d718 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
        23  UIKit                               0x00333ffe -[UITableView _userSelectRowAtIndexPath:] + 219
        24  Foundation                          0x0004acea __NSFireDelayedPerform + 441
        25  CoreFoundation                      0x02558d43 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
        26  CoreFoundation                      0x0255a384 __CFRunLoopDoTimer + 1364
        27  CoreFoundation                      0x024b6d09 __CFRunLoopRun + 1817
        28  CoreFoundation                      0x024b6280 CFRunLoopRunSpecific + 208
        29  CoreFoundation                      0x024b61a1 CFRunLoopRunInMode + 97
        30  GraphicsServices                    0x02ddc2c8 GSEventRunModal + 217
        31  GraphicsServices                    0x02ddc38d GSEventRun + 115
        32  UIKit                               0x002d9b58 UIApplicationMain + 1160
        33  JamsApp                             0x00001c0c main + 102
        34  JamsApp                             0x00001b9d start + 53
    )
    terminate called after throwing an instance of 'NSException'
这是错误的转储:

2010-09-29 07:20:00.443 Jams[12451:207] Serious application error.  Exception was caught during Core Data change processing.  This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.  [<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name. with userInfo {
        NSTargetObjectUserInfoKey = "<UINavigationItem: 0x5b4dc30>";
        NSUnknownUserInfoKey = name;
    }
    2010-09-29 07:20:00.446 Jams[12451:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UINavigationItem 0x5b4dc30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.'
    *** Call stack at first throw:
    (
        0   CoreFoundation                      0x02577919 __exceptionPreprocess + 185
        1   libobjc.A.dylib                     0x026c55de objc_exception_throw + 47
        2   CoreFoundation                      0x02577851 -[NSException raise] + 17
        3   Foundation                          0x000d96b1 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 279
        4   Foundation                          0x00040868 _NSGetUsingKeyValueGetter + 147
        5   Foundation                          0x0003fd2e -[NSObject(NSKeyValueCoding) valueForKey:] + 278
        6   Foundation                          0x00043535 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 381
        7   Foundation                          0x000f7c4f -[NSSortDescriptor compareObject:toObject:] + 128
        8   CoreData                            0x0237cb5e +[NSFetchedResultsController(PrivateMethods) _insertIndexForObject:inArray:lowIdx:highIdx:sortDescriptors:] + 286
        9   CoreData                            0x0237d1b2 -[NSFetchedResultsController(PrivateMethods) _postprocessInsertedObjects:] + 402
        10  CoreData                            0x023831bc -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 1804
        11  Foundation                          0x00035c1d _nsnote_callback + 145
        12  CoreFoundation                      0x0254fcf9 __CFXNotificationPost_old + 745
        13  CoreFoundation                      0x024cf11a _CFXNotificationPostNotification + 186
        14  Foundation                          0x0002b7c2 -[NSNotificationCenter postNotificationName:object:userInfo:] + 134
        15  CoreData                            0x022bf519 -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 89
        16  CoreData                            0x0232eb33 -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 259
        17  CoreData                            0x022a1f78 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 1352
        18  CoreData                            0x022dba15 -[NSManagedObjectContext save:] + 149
        19  JamsApp                             0x000064b3 -[JamsListTableViewController insertJamItem:] + 168
        20  JamsApp                             0x00006405 -[JamsListTableViewController selectedJamItem:] + 43
        21  JamsApp                             0x00003f41 -[JamItemListTableViewController tableView:didSelectRowAtIndexPath:] + 143
        22  UIKit                               0x0033d718 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
        23  UIKit                               0x00333ffe -[UITableView _userSelectRowAtIndexPath:] + 219
        24  Foundation                          0x0004acea __NSFireDelayedPerform + 441
        25  CoreFoundation                      0x02558d43 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
        26  CoreFoundation                      0x0255a384 __CFRunLoopDoTimer + 1364
        27  CoreFoundation                      0x024b6d09 __CFRunLoopRun + 1817
        28  CoreFoundation                      0x024b6280 CFRunLoopRunSpecific + 208
        29  CoreFoundation                      0x024b61a1 CFRunLoopRunInMode + 97
        30  GraphicsServices                    0x02ddc2c8 GSEventRunModal + 217
        31  GraphicsServices                    0x02ddc38d GSEventRun + 115
        32  UIKit                               0x002d9b58 UIApplicationMain + 1160
        33  JamsApp                             0x00001c0c main + 102
        34  JamsApp                             0x00001b9d start + 53
    )
    terminate called after throwing an instance of 'NSException'
2010-09-29 07:20:00.443阻塞[12451:207]严重的应用程序错误。在核心数据更改处理期间捕获异常。这通常是NSManagedObjectContextObjectsIDChangeNotification的观察者中的错误。[valueForUndefinedKey:]:此类不符合密钥名称的键值编码。使用userInfo{
NSTargetObjectUserInfoKey=“”;
NSUnknownUserInfoKey=名称;
}
2010-09-29 07:20:00.446阻塞[12451:207]***由于未捕获的异常“NSUnknownKeyException”而终止应用程序,原因:“[valueForUndefinedKey:]:此类不符合密钥名称的键值编码。”
***第一次抛出时调用堆栈:
(
0 CoreFoundation 0x02577919例外预处理+185
1 libobjc.A.dylib 0x026c55de objc_异常_抛出+47
2芯基础0x02577851-[N异常升高]+17
3基金会0x000 0D96B1- [ NSObjor(NKEY ValueCudid)ValueFunDealEdKEY:] + 279
4基金会0x000 040868,NGETUSENG KEY ValueGETER + 147
5基金会0x000 03FD2e - [ NSObjices(NSKEY ValueCudid)ValueFoiKe:] + 278
6基金会0x000 043535 - [ NSObjor(NSKEY ValueCoDIN)ValueFoePixPosie:] + 381
7基金会0x000 0F7C4F- [ NSSORtRealthor COMPRACKObjult:ToObjult:] + 128
8 CoreData 0x0237cb5e+[NSFetchedResultsController(PrivateMethods)\ u insertIndexForObject:inArray:lowIdx:highIdx:sortDescriptors:+286
9 CoreData 0x0237d1b2-[NSFetchedResultsController(PrivateMethods)\u后处理插入对象:+402
10 CoreData 0x023831bc-[NSFetchedResultsController(PrivateMethods)\u managedObjectContextDidChange:+1804
11基金会0x000 035C1D NoNo.KelBead + 145
12 CoreFoundation 0x0254fcf9\uuuCFxNotificationPost\uOld+745
13 CoreFoundation 0x024cf11a _CFX通知后通知+186
14基金会0x000 02B7C2- [ NSnPosiCICTeCsPoestPosiTrimeTrimeNo:对象:用户信息:] + 134
15 CoreData 0x022bf519-[NSManagedObjectContext(\u NSInternalNotificationHandling)\u PostObjectsIDChangeNotificationWithUserInfo:+89
16 CoreData 0x0232eb33-[NSManagedObjectContext(\u NSInternalChangeProcessing)\u createAndPostChangeNotification:带删除:带更新:带刷新:+259
17 CoreData 0x022a1f78-[NSManagedObjectContext(\u NSInternalChangeProcessing)\u processRecentChanges:+1352
18 CoreData 0x022dba15-[NSManagedObjectContext保存:][149
19 JAMSAP 0x000064b3-[JamsListTableViewController insertJamItem:+168
20 JamsApp 0x00006405-[JamsListTableViewController selectedJamItem:+43
21 JamsApp 0x00003f41-[JamItemListTableViewController tableView:didSelectRowAtIndexPath:+143
22 UIKit 0x0033d718-[UITableView\u selectRowAtIndexPath:动画:scrollPos