Interface Builder Error: WKWebView before macOS 10.12

I have a xib with a WKWebview in it. The WKWebview is the view for the view controller.


I'm aware that WKWebView wouldn't unarchive correctly on 10.11 and earlier, so I implemented a workaround by overriding loadView, and if not on 10.12 or later, create the WKWebview programmatically and set self.view to it.


But now I get this error and the app cannot compile. Is there a way I turn this error off, without turning all Interface Builder errors off?

I don't think UIWebview has yet been deprecated on macOS (?) - have you tried using it, instead?

Interface Builder Error: WKWebView before macOS 10.12
 
 
Q