一,说明:

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

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

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

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



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



相关文章:

  • 2021-06-22
  • 2021-11-10
  • 2021-03-28
  • 2021-12-07
  • 2021-07-05
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-05-21
  • 2021-05-16
  • 2022-12-23
  • 2021-05-11
  • 2021-10-28
相关资源
相似解决方案