"_OBJC_CLASS_$_WKWebView", referenced from:"...and "linker command failed with exit code 1 (use -v "

一,说明:

在做JS与OC交互时;Xcode报错:如下图:


二,解决方法:(添加Webkit.framework  status:optional)





Go to your Project, click on General, scroll down to Linked Frameworks and Libraries, and add WebKit.framework as Optional. See here: Xcode 6 + iOS 8 SDK but deploy on iOS 7 (UIWebKit & WKWebKit)

转到你的项目,点击通用,向下滚动到链接的框架和库,添加WebKit。框架是可选的。看这里:Xcode 6+ios8 SDK,但部署在iOS 7上(UIWebKit和WKWebKit)

stackoverflow上相同的问题描述:https://stackoverflow.com/questions/27615041/uiwebview-and-wkwebview



你可能感兴趣的:(Xcode报错及解决方法,linker,command,faile,ios)