將原來(lái)的UIWebView升級(jí)為更輕量級(jí),占用內(nèi)存更少的WKWebView后卡辰,出現(xiàn)了如下的問(wèn)題:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_WKWebView", referenced from:
objc-class-ref in DrivingViewController.o
ld: symbol(s) not found for architecture arm64
解決方法 :在項(xiàng)目配置中添加系統(tǒng)類庫(kù):WebKit.framework
1胞皱、Go to your Project
2邪意、Select your Target
3、Then, go to Build Phases
4反砌、Open Link Binary With Libraries
5雾鬼、Finally, just add + the WebKit framework / any other framework.