Instabug / Instabug-SP

Other
11 stars 11 forks source link

[Xcode 16 / iOS18] Crash in CollectionView #38

Open konroj opened 2 weeks ago

konroj commented 2 weeks ago

Steps to Reproduce the Problem

Expected Behavior

No crash

Actual Behavior

Crash on iOS18 (works at iOS17):

Thread 1: "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: <IBGInboundTextCell: 0x17a6b8700; baseClass = UICollectionViewCell; frame = (0 37; 393 59.9336); layer = <CALayer: 0x600000548fa0>>; Collection view: <IBGChatCollectionView: 0x10303ae00; baseClass = UICollectionView; frame = (0 0; 393 643); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x600000f76c70>; backgroundColor = <UIDynamicProviderColor: 0x6000005402a0; provider = <__NSMallocBlock__: 0x600000fed770>>; layer = <CALayer: 0x6000004b3b80>; contentOffset: {0, 0}; contentSize: {393, 262.8671875}; adjust"

Seems to be related to: https://forums.developer.apple.com/forums/thread/756645

Variables set before .show(): Instabug.addFileAttachment(with: url) // logfile Instabug.setUserAttribute(x ? "true" : "false", withKey: "y")

SDK Version

13.4.2

iOS Version

18.0, 18.1

Device Model

15 Pro