1. 引入三方库文件报错
报错内容
Undefined symbols for architecture x86_64:
"OBJC_CLASS_WKWebViewConfiguration", referenced from:
objc-class-ref in libWeChatSDK.a(WapAuthHandler.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
错误原因
SDK中缺少依赖库,该报错是缺少WebKit.framework库
解决方案
添加缺少的依赖库即可,如下图: