WKWebView code causes crash when using the Xcode debugger with iOS 14.5

Developers trying to debug with Xcode and Safari may run into this crash

Photo Illustration by David Fekke

Originally published at https://fek.io.

I was running into nasty crash whenever I tried to debug the WKWebView in one of my iOS apps. It is a common practice among developers to debug using Safari while running JavaScript code in their WebViews.