WebKit was introduced in iOS 8 , but was released with an error that caused a crash at runtime. If you are using Xcode 9/10 , your project configuration support is less than iOS 11 and if you are trying to add WKWebView using the interface designer. Xcode immediately shows an error at compile time.
WKWebView before iOS 11.0 (NSCoding support was interrupted in the previous version)
Although WKWebView was introduced in iOS 8 , there was a bug in [WKWebView initWithCoder:] that was fixed only in iOS 11 .

Solution - you should add WKWebView via code (only if you support below iOS 11). It actually sounds weird.
Another solution is to change the Interface Builder document assemblies for this option on iOS 11 and later (if you upgrade from an older target to iOS 11 and still get the same error).
Mr.Javed Multani Sep 18 '19 at 2:54 am 2019-09-18 02:54
source share