iOS調(diào)試過程中,如果出現(xiàn)類似“Could not instantiate class named xxx”的錯誤,一般都是沒有引入相關(guān)的系統(tǒng)庫導(dǎo)致的,下面以Could not instantiate class named WKWebView為例的解決方案是:
Xcode--》TARAGETS--》General--》Linked Frameworks and Librarier,點擊“+”號添加相應(yīng)的系統(tǒng)庫,如下圖所示:

然后編譯,run,問題解決。