didi / DoKit

一款面向泛前端产品研发全生命周期的效率平台。
Apache License 2.0
20.09k stars 3.09k forks source link

【DoKit生态场景】-描述出现的问题 使用Dokit首页在Xcode 16.1 beta 打包跑在iOS18系统上会崩溃 #1173

Open iimuy opened 2 weeks ago

iimuy commented 2 weeks ago

iPhone 11 , iOS 18 beta 进入Dokit首页往下滑动会出现崩溃

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expected dequeued view to be returned to the collection view in preparation for display. When the collection view's data source is asked to provide a view for a given index path, ensure that a single view is dequeued and returned to the collection view. Avoid dequeuing views without a request from the collection view. For retrieving an existing view in the collection view, use -[UICollectionView cellForItemAtIndexPath:] or -[UICollectionView supplementaryViewForElementKind:atIndexPath:]. Dequeued view: <DoraemonHomeCell: 0x12cc8d500; baseClass = UICollectionViewCell; frame = (0 1067; 414 55.2); backgroundColor = <UIDynamicSystemColor: 0x300e14a00; name = systemBackgroundColor>; layer = <CALayer: 0x301e78180>>; Collection view: <UICollectionView: 0x12c640000; frame = (0 92; 414 804); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x300f6ee20>; backgroundColor = <UIDynamicSystemColor: 0x300e14a00; name = systemBackgroundColor>; layer = <CALayer: 0x301ea94c0>; contentOffset: {0, 31.5}; contentSize: {414, 1166.2079999999999}; adjustedContentInset: {0, 0, 34, 0}; layout: <UICollectionViewFlowLayout: 0x12cc36080>; dataSource: <DoraemonHomeViewController: 0x12b55bc00>>' First throw call stack: (0x192e0d08c 0x19010f2e4 0x1921de15c 0x195f4d114 0x1966848fc 0x195716160 0x19586e950 0x19556cf2c 0x1948b0778 0x1948b0304 0x1949073b0 0x1948861e8 0x1948c94ac 0x19560bab4 0x1956090b0 0x195608f24 0x195608b74 0x195609ae8 0x192de0088 0x192de001c 0x192dddb08 0x192ddcd04 0x192ddc5b8 0x1de6b51c4 0x19593bb6c 0x1959e9fdc 0x1052cc780 0x1b84eed34)