@bchoi can you point to some documentation or release notes? I wasn't able to find anything & would love to see more if I can. Thanks in advance!
Post
Replies
Boosts
Views
Activity
We're facing the same crash in our iOS app. Interestingly, we set the tableView's dataSource to self in a view controller class in the method in which the crash is reported - so it's very weird seeing that it is nil.
We have:
if tableView.dataSource == nil {
tableView.dataSource = self
/* some other logic */
}
tableView.reloadData()
tableView.layoutIfNeeded()
There is a catch, however: after this code, we need to wait for one run loop cycle using DispatchQueue.main.async, for the layout to complete (hence layoutIfNeeded call), after which scrollToRow is attempted.
In DispatchQueue.main.async's closure, table view is weakly captured, so it should be non-nil if the view controller is non-nil, as nothing else is retaining it.
Memory of every instance in this view controller is carefully managed. Once the view controller gets removed from its navigation controller, everything goes out of memory; no retain cycles, no work being performed after the controller is deallocated. Combine is used for async tasks and every task gets cancelled once the view controller is deinitialized.
There may be a mistake in our code that we haven't found yet, but I'm reporting this since I'm seeing we're not the only one with the issue.
The crash so far occurred only on iOS 17.5.1
It seems that WKWebView honors NSPinnedDomains from iOS 16 onwards, though it is necessary to delete an app between tests, as caches could provide false-positive results.
For anyone who's interested, Apple has replied to my feedback with a rejection:
Thank you for your feedback, it is noted. Engineering has determined that there are currently no plans to address this issue.
You can close this feedback by selecting "Close Feedback" via the Actions button found above. This Feedback will no longer be monitored, and incoming messages will not be reviewed.
I posted the bug number in a comment to your post. Posting it here again for convenience: FB14287821