003_iOS9 WKWebView crash

在firebase的后台看到的崩溃信息:

Fatal Exception: NSInvalidArgumentException
-[WKWebViewConfiguration setDataDetectorTypes:]: unrecognized selector sent to instance 0x1861a8e0

搜索到的答案

setDataDetectorTypes is available only from iOS 10. You have to add if @available(iOS 10.0, *) { ... } into your code