我从 Crashlytics 收到了这份崩溃报告。有谁知道为什么会发生这种情况?请帮我。谢谢。
致命异常:NSInternalInconsistencyException UICollectionView 内部不一致:缺少单元格 <Cell_NAME: 0x1193123c0; 的最终属性;基类 = UICollectionViewCell; 帧=(0 716;414 68.5);层 = <CALayer: 0x283944dc0>>; 初始属性: <UICollectionViewLayoutAttributes: 0x12640a2d0> 索引路径:(<NSIndexPath: 0xac46dcd1e0749431> {length = 2, path = 3 - 0}); 帧=(0 716;414 68.5);; 布局查询: <UICollectionViewLayoutAttributes: 0x107239cb0> 索引路径:(<NSIndexPath: 0xac46dcd1e0749431> {length = 2, path = 3 - 0}); 帧=(0 590;414 64);; 集合视图:<UICollectionView:0x109891000;帧=(0 0;414 896);剪辑边界=是;手势识别器 = <NSArray: 0x28369b3c0>; 层 = <CALayer: 0x2838dff60>; 内容偏移: {0, 244}; 内容大小: {414, 1253}; 调整后的内容插入: {48, 0, 34, 0}; 布局:<UICollectionViewCompositionalLayout:0x107398c10>;数据源:<VC_NAME:0x10e018600>>
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x990fc __exceptionPreprocess
1 libobjc.A.dylib 0x15d64 objc_exception_throw
2 Foundation 0x1303ac _userInfoForFileAndLine
3 UIKitCore 0x227808 -[UICollectionView _updateVisibleCellsNow:]
4 UIKitCore 0x17ae64 -[UICollectionView layoutSubviews]
5 UIKitCore 0x18d798 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
6 QuartzCore 0x40138 CA::Layer::layout_if_needed(CA::Transaction*)
7 QuartzCore 0x32958 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
8 QuartzCore 0x46f80 CA::Context::commit_transaction(CA::Transaction*, double, double*)
9 QuartzCore 0x4f874 CA::Transaction::commit()
10 QuartzCore 0x320b0 CA::Transaction::flush_as_runloop_observer(bool)
11 CoreFoundation 0x41610 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
12 CoreFoundation 0x108f4 __CFRunLoopDoObservers
13 CoreFoundation 0xb98c __CFRunLoopRun
14 CoreFoundation 0x1f468 CFRunLoopRunSpecific
15 GraphicsServices 0x138c GSEventRunModal
16 UIKitCore 0x51a088 -[UIApplication _run]
17 UIKitCore 0x298958 UIApplicationMain
18 DocTime 0x5740 main + 20 (Model.swift:20)
19 ??? 0x10602daa4 (Missing)
Run Code Online (Sandbox Code Playgroud)