I am loading a URL request in web View and sometimes I am getting the following warning in logs. Due to the warning, webViewDidFinishLoad never gets called.
WebKit discarded an uncaught exception in the webView:didFinishLoadForFrame: delegate: attempt to delete item 1 from section 0 which only contains 1 items before the update.
I have added web view in the collection view cell.
Any help would be highly appreciated!!
Add an exception breakpoint. This will fire when the exception is raised, which will let you see what's happening.

It is possible to encounter harmless caught exceptions that will fire this breakpoint, but they're very rare, so generally if this breakpoint fires, it's a legitimate problem. Don't confuse these exceptions with Swift throws. They're not related.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With