gpt4 book ai didi

iOS - 无法检测到应用程序崩溃

转载 作者:行者123 更新时间:2023-11-29 12:54:26 24 4
gpt4 key购买 nike

我正在做一个应用程序,当我尝试将数据从 UIView 保存到 Core Data 时,它会抛出一个错误...我已经花了 5 个多小时尝试一些不同的东西,但我无法修复它。我不认为我以错误的方式保存它,因为我在另一个 UIView 上使用了相同的方法并且它工作得很好。我只更改了一些 UITextfields...

这是错误:

2014-02-02 18:52:51.937 4Dealrs[3900:70b] CoreData: error: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification. [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key . with userInfo { NSTargetObjectUserInfoKey = ">"; NSUnknownUserInfoKey = ""; } 2014-02-02 18:52:51.940 4Dealrs[3900:70b] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ valueForUndefinedKey:]: this class is not key value coding-compliant for the key .' * First throw call stack: ( 0 CoreFoundation 0x01b9d5e4 exceptionPreprocess + 180 1 libobjc.A.dylib 0x018468b6 objc_exception_throw + 44 2 CoreFoundation 0x01c2d6a1 -[NSException raise] + 17 3 Foundation 0x015078ca -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 282 4 Foundation 0x01474921 _NSGetUsingKeyValueGetter + 81 5 Foundation 0x01473f5b -[NSObject(NSKeyValueCoding) valueForKey:] + 260 6 Foundation 0x014d56af -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 321 7 UIKit 0x00b310c5 -[UINibKeyValuePair apply] + 70 8 libobjc.A.dylib 0x018587d2 -[NSObject performSelector:] + 62 9 CoreFoundation 0x01b98b6a -[NSArray makeObjectsPerformSelector:] + 314 10 UIKit 0x00855552 -[UINib instantiateWithOwner:options:] + 1389 11 UIKit 0x00698b4b -[UITableView _dequeueReusableViewOfType:withIdentifier:] + 370 12 UIKit 0x00698e24 -[UITableView dequeueReusableCellWithIdentifier:] + 48 13 UIKit 0x00698e54 -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] + 43 14 4Dealrs 0x00014b12 -[SDListaClientesViewController tableView:cellForRowAtIndexPath:] + 130 15 UIKit 0x006a361f -[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 412 16 UIKit 0x006a36f3 -[UITableView _createPreparedCellForGlobalRow:] + 69 17 UIKit 0x008bf112 -[_UITableViewUpdateSupport(Private) _setupAnimationsForNewlyInsertedCells] + 8156 18 UIKit 0x008c85ca -[_UITableViewUpdateSupport _setupAnimations] + 143 19 UIKit 0x0068a4bd -[UITableView _updateWithItems:updateSupport:] + 1898 20 UIKit 0x006858e1 -[UITableView _endCellAnimationsWithContext:] + 13534 21 UIKit 0x00695550 -[UITableView _updateRowsAtIndexPaths:updateAction:withRowAnimation:] + 337 22 UIKit 0x0069558f -[UITableView insertRowsAtIndexPaths:withRowAnimation:] + 55 23 4Dealrs 0x0000d4c7 -[CoreDataTableViewController controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:] + 375 24 CoreData 0x00178df2 -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 4322 25 Foundation 0x01519bf9 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40 26 CoreFoundation 0x01bf9524 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 20 27 CoreFoundation 0x01b5100b _CFXNotificationPost + 2859 28 Foundation 0x01453951 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98 29 CoreData 0x0007d173 -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 83 30 CoreData 0x0011c78f -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 367 31 CoreData 0x00078608 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 2152 32 CoreData 0x00077d99 -[NSManagedObjectContext processPendingChanges] + 41 33 CoreData 0x0004bfe1 _performRunLoopAction + 321 34 CoreFoundation 0x01b654ce CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 30 35 CoreFoundation 0x01b6541f __CFRunLoopDoObservers + 399 36 CoreFoundation 0x01b43344 __CFRunLoopRun + 1076 37 CoreFoundation 0x01b42ac3 CFRunLoopRunSpecific + 467 38 CoreFoundation 0x01b428db CFRunLoopRunInMode + 123 39 GraphicsServices 0x02eb39e2 GSEventRunModal + 192 40 GraphicsServices 0x02eb3809 GSEventRun + 104 41 UIKit 0x005b4d3b UIApplicationMain + 1225 42 4Dealrs 0x0000db7d main + 141 43 libdyld.dylib 0x02b5570d start + 1 44 ??? 0x00000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

我一直在搜索这个错误,但我没有找到任何有用的东西......

提前致谢!

最佳答案

从堆栈跟踪来看,您似乎有一个从 NIB 文件实例化的 tableViewCell,并且在 NIB 中,您有一个导出设置用于在 .h/.m 文件中没有匹配属性的字段之一。因此,仔细检查 tableViewCell NIB 文件中的所有 socket 。

关于iOS - 无法检测到应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21514756/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com