使用WKWebView控件报错如下:

Could not instantiate class named WKWebView because no class named WKWebView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target

Could not instantiate class named WKWebView because no class named WKWebView was found解决_控件

 

解决方案:

添加webkit框架

Could not instantiate class named WKWebView because no class named WKWebView was found解决_重新编译_02

 添加成功

Could not instantiate class named WKWebView because no class named WKWebView was found解决_ios_03

 重新编译问题解决.