Posts

Post marked as solved
1 Replies
5.6k Views
I have a UICollectionView in my app which uses UICollectionView.CellRegistration (Swift) / UICollectionViewCellRegistration (Objective-C) to register & dequeue cells. When I build my app using Xcode 13 and run it on iOS 15, I see the following exception from UICollectionView: Assertion failure in -[UICollectionView dequeueConfiguredReusableCellWithRegistration:forIndexPath:item:], UICollectionView.m:7160 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempted to dequeue a cell using a registration that was created inside -collectionView:cellForItemAtIndexPath: or inside a UICollectionViewDiffableDataSource cell provider. Creating a new registration each time a cell is requested will prevent reuse and cause created cells to remain inaccessible in memory for the lifetime of the collection view. Registrations should be created up front and reused. Registration: <UICollectionViewCellRegistration: 0x186ef8b10>' Why is my app crashing with this error?
Posted
by Frameworks Engineer.
Last updated
.