ios - 代码 8 : Terminating with Uncaught exception of type NSException

标签 ios swift xcode8

我是新手,我遇到了这个错误,我到处查找,但找不到解决方案。非常感谢任何帮助!

  0   CoreFoundation                      0x00000001102bb34b __exceptionPreprocess + 171
  1   libobjc.A.dylib                     0x000000010d61c21e objc_exception_throw + 48
  2   CoreFoundation                      0x00000001102bb299 -[NSException raise] + 9
  3   Foundation                          0x000000010d12c2ff -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291
  4   UIKit                               0x000000010dbafc01 -[UIView(CALayerDelegate) setValue:forKey:] + 173
  5   UIKit                               0x000000010def9be6 -[UIRuntimeOutletConnection connect] + 109
  6   CoreFoundation                      0x0000000110260590 -[NSArray makeObjectsPerformSelector:] + 256
  7   UIKit                               0x000000010def856a -[UINib instantiateWithOwner:options:] + 1867
  8   UIKit                               0x000000010dc451e8 -[UITableView _dequeueReusableViewOfType:withIdentifier:] + 399
  9   UIKit                               0x000000010dc456e0 -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] + 71
  10  Foodtracker                         0x000000010d0274e7 _TFC11Foodtracker23MealTableViewController9tableViewfTCSo11UITableView12cellForRowAtV10Foundation9IndexPath_CSo15UITableViewCell + 199
  11  Foodtracker                         0x000000010d027a97 _TToFC11Foodtracker23MealTableViewController9tableViewfTCSo11UITableView12cellForRowAtV10Foundation9IndexPath_CSo15UITableViewCell + 87
  12  UIKit                               0x000000010dc58ba9 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 757
  13  UIKit                               0x000000010dc58e07 -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 74
  14  UIKit                               0x000000010dc2c871 -[UITableView _updateVisibleCellsNow:isRecursive:] + 3295
  15  UIKit                               0x000000010dc62189 -[UITableView _performWithCachedTraitCollection:] + 110
  16  UIKit                               0x000000010dc489e3 -[UITableView layoutSubviews] + 222
  17  UIKit                               0x000000010dbb0344 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
  18  QuartzCore                          0x000000011306acdc -[CALayer layoutSublayers] + 146
  19  QuartzCore                          0x000000011305e7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
  20  QuartzCore                          0x000000011305e61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
  21  QuartzCore                          0x0000000112fec62c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
  22  QuartzCore                          0x0000000113019713 _ZN2CA11Transaction6commitEv + 475
  23  QuartzCore                          0x000000011301a083 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
  24  CoreFoundation                      0x000000011025fe17 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
  25  CoreFoundation                      0x000000011025fd87 __CFRunLoopDoObservers + 391
  26  CoreFoundation                      0x00000001102444b6 CFRunLoopRunSpecific + 454
  27  UIKit                               0x000000010dae5db6 -[UIApplication _run] + 434
  28  UIKit                               0x000000010daebf34 UIApplicationMain + 159
  29  Foodtracker                         0x000000010d028c4f main + 111
  30  libdyld.dylib                       0x00000001111e568d start + 1
  31  ???                                 0x0000000000000001 0x0 + 1

) libc++abi.dylib:以 NSException 类型的未捕获异常终止 (lldb)

最佳答案

检查您的 Storyboard:所有 IBAction、IBOutlet 都已连接并使用它们的当前名称?当 iboutlets 出现问题时,它实际上会发生

关于ios - 代码 8 : Terminating with Uncaught exception of type NSException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40005899/

相关文章:

arrays - for in 循环只保存 Parse 中的最后一个元素。 swift

xcode - 如何在 Xcode 8 中启用可视内存调试器?

ios - 允许仅从文本字段中的字母数字粘贴数字

ios - Swift 中的 DateComponents 返回奇怪的值。为什么?

ios - 动态 UITextView 查询 iOS

ios - 如何在 tableview 中添加额外的行,除了 swift 中的两个单元格

xcode - 尝试将新版本上传到 iTunes Connect 时出现无效的 Bundle 错误

ios - 使用 XCode 8.x 如何克隆现有目标?

objective-c - 在 iOS 中传递参数

ios - 替换代码中的 IBOutlet View