问题
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_WKWebView", referenced from: ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help is appreciated!
回答1:
Just for reference:
Go to your Project -> General -> Linked Frameworks and Libraries then add WebKit.framework
What you see here is that the WebKit framework is used but the actual binary is not getting linked.
回答2:
Check if @implementation
is absence. This answer gives you more info.
来源:https://stackoverflow.com/questions/38298322/undefined-symbols-for-architecture-x86-64-objc-class-wkwebview-referenced