Undefined symbols for architecture x86_64: “_OBJC_

2020-07-02 11:04发布

问题:

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.