I have a UITableView based up. It is running fine on all iOS versions including 15.0. It is also running fine on all iPadOS versions up to 14.x. But only on iPadOS 15.0 it crashes with the following error message:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier TextCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
Is this a know issue? How can I debug it to figure out where the problem lies?
Note that I actually do register the NIB as follows in viewDidLoad:
static NSString *reuseIdentifierTextCell = @"TextCell";
[self.tableView registerNib:[UINib nibWithNibName:@"ChatTextCellCondensed" bundle:nil] forCellReuseIdentifier:reuseIdentifierTextCell];
It is crashing at this line in cellForRowAtIndexPath:
cell = [tableView dequeueReusableCellWithIdentifier:reuseIdentifierTextCell forIndexPath:indexPath];
Thanks!
-
—
Claude31
Add a CommentJust an idea: have you checked the name of Nib is the exact one ? But if it works on iOS and not iPadOS 15 exclusively, that's unlikely the problem. Have you created different targets for iOS and iPadOS ? If so, maybe the cell is not referenced in the iPad target ? Did you file a bug report ?