Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/116.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
Ios libc++;abi.dylib:由appDelegate.swift以NSException(lldb)类型的未捕获异常终止_Ios_Uitableview_Swift3 - Fatal编程技术网

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

Ios libc++;abi.dylib:由appDelegate.swift以NSException(lldb)类型的未捕获异常终止,ios,uitableview,swift3,Ios,Uitableview,Swift3,我对swift 3的了解非常有限。我的代码已编译,但应用程序在启动时崩溃,出现以下错误。我知道发生了什么或如何修复它。如果您能帮忙,我们将不胜感激 2017-02-14 15:34:58.535 Application[23749:1525292] *** Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /BuildRoot/Library/Caches/com.apple.xbs/Sourc

我对swift 3的了解非常有限。我的代码已编译,但应用程序在启动时崩溃,出现以下错误。我知道发生了什么或如何修复它。如果您能帮忙,我们将不胜感激

2017-02-14 15:34:58.535 Application[23749:1525292] *** Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.5.2/UITableView.m:8035 2017-02-14 15:34:58.538 Application[23749:1525292] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView (; layer = ; contentOffset: {0, 0}; contentSize: {375, 264}>) failed to obtain a cell from its dataSource ()' *** First throw call stack: ( 0 CoreFoundation 0x0000000105ff934b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x0000000102ed821e objc_exception_throw + 48 2 CoreFoundation 0x0000000105ffd442 +[NSException raise:format:arguments:] + 98 3 Foundation 0x0000000102a6ee4d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195 4 UIKit 0x0000000103925bfe -[UITableView _configureCellForDisplay:forIndexPath:] + 222 5 UIKit 0x000000010393181c -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 860 6 UIKit 0x0000000103931a13 -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 74 7 UIKit 0x000000010390547d -[UITableView _updateVisibleCellsNow:isRecursive:] + 3295 8 UIKit 0x000000010393ad95 -[UITableView _performWithCachedTraitCollection:] + 110 9 UIKit 0x00000001039215ef -[UITableView layoutSubviews] + 222 10 UIKit 0x0000000103888f50 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237 11 QuartzCore 0x0000000108dc5cc4 -[CALayer layoutSublayers] + 146 12 QuartzCore 0x0000000108db9788 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366 13 QuartzCore 0x0000000108db9606 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24 14 QuartzCore 0x0000000108d47680 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280 15 QuartzCore 0x0000000108d74767 _ZN2CA11Transaction6commitEv + 475 16 QuartzCore 0x0000000108d750d7 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113 17 CoreFoundation 0x0000000105f9de17 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 18 CoreFoundation 0x0000000105f9dd87 __CFRunLoopDoObservers + 391 19 CoreFoundation 0x0000000105f824b6 CFRunLoopRunSpecific + 454 20 UIKit 0x00000001037be7e6 -[UIApplication _run] + 434 21 UIKit 0x00000001037c4964 UIApplicationMain + 159 22 Application 0x00000001028efb6f main + 111 23 libdyld.dylib 0x0000000106f2668d start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException 2017-02-14 15:34:58.535应用程序[23749:1525292]***在-[UITableView\u configureCellForDisplay:forIndexPath:],/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit\u Sim/UIKit-3600.5.2/UITableView.m:8035中断言失败 2017-02-14 15:34:58.538应用程序[23749:1525292]***由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“UITableView(;layer=;contentOffset:{0,0};contentSize:{375,264}>)无法从其数据源()获取单元格” ***第一次抛出调用堆栈: ( 0 CoreFoundation 0x0000000105ff934b例外预处理+171 1 libobjc.A.dylib 0x0000000102ed821e objc_异常_抛出+48 2 CoreFoundation 0x0000000105ffd442+[N异常提升:格式:参数:][98 3基金会0x000 000 0102A6EE4D- [ NSRealStutsHuffer-HooRealRuleIn方法:对象:文件:文件号:描述:] + 195 4 UIKit 0x0000000103925bfe-[UITableView\u配置CellForDisplay:forIndexPath:+222 5 UIKit 0x000000010393181c-[UITableView\u createPreparedCellForGlobalRow:withIndexPath:willDisplay:+860 6 UIKit 0x0000000103931a13-[UITableView\u createPreparedCellForGlobalRow:将显示:][74 7 UIKit 0x000000010390547d-[UITableView\u updateVisibleCellsNow:isRecursive:+3295 8 UIKit 0x000000010393ad95-[UITableView\u性能与CachedTraitCollection:+110 9 UIKit 0x00000001039215ef-[UITableView布局子视图]+222 10 UIKit 0x0000000103888f50-[UIView(CALayerDelegate)布局层的子层:+1237 11夸脱芯0x0000000108dc5cc4-[CALayer layoutSublayers]+146 12夸脱核心0x0000000108db9788 _Zn2Ca5层布局_如果需要PNS 11交易+366 13 QuartzCore 0x0000000108db9606 _Zn2CA58层布局和显示(如果需要)PNS 11事务+24 14 QuartzCore 0x0000000108d47680_ZN2CA7Context18commit_TransactionPNS_11TransactionE+280 15夸脱矿石0x0000000108d74767_Zn2Ca11交易承诺+475 16夸脱核心0x0000000108d750d7_ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv+113 17 CoreFoundation 0x0000000105f9de17\uuuu CFRUNLOOP\u正在调用\uu OUT\u到\uu观察者\uu回调函数\uuuu+23 18 CoreFoundation 0x0000000105f9dd87_u cfrunloopdoobserver+391 19 CoreFoundation 0x0000000105f824b6 CFRunLoopRunSpecific+454 20 UIKit 0x00000001037be7e6-[UIApplication_run]+434 21 UIKit 0x00000001037c4964 UIApplicationMain+159 22应用程序0x00000001028efb6f主+111 23 libdyld.dylib 0x0000000106f2668d启动+1 ) libc++abi.dylib:以NSException类型的未捕获异常终止
请尝试。请在此处查找您的答案:您可以在以下答案中找到原因:,,我认为您没有为表视图注册单元格的主要原因。如果不是,请检查已注册和已退出队列的单元格的重用标识符是否相同。