Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_WKWebView", referenced from:
Asked Answered
U

3

31

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)

enter image description here

Any help is appreciated!

Upsweep answered 11/7, 2016 at 2:27 Comment(8)
Did you link the WebKit framework to your project?Chew
Yeah, I'm sure I imported #import <WebKit/WebKit.h>. But the minimum version of Xcode deploy is 7.0.Upsweep
I mean, did you: 1. Click on your project in Xcode 2. Select General 3. Locate "Linked Frameworks and Libraries" 4. Click the plus button at the bottom and select "WebKit.framework" 5. Click Add?Chew
If you're minimum deployment target is iOS 7 you'll need to check which version of the OS the device is running. If the user is running iOS 7 you'll have to fall back to UIWebView. If they are using iOS 8 you can use WKWebView. This post will help you: #25341738Chew
@Chew You saved me . 1.I annotated these WKWebView code, that's running ok.Upsweep
@Chew 2. I added WebKit.framework to the Linked Frameworkds and Libraries, that's ok too.Upsweep
Finally I checked OS version of the project. Thank you ! @ChewUpsweep
No Problem. Glad I could help.Chew
S
42

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.

Sitzmark answered 11/12, 2018 at 14:55 Comment(0)
W
1

Check if @implementation is absence. This answer gives you more info.

Womankind answered 24/5, 2017 at 21:30 Comment(2)
where to check this @implementation ?Medieval
@AwaisMobeen Did you have a chance to check this link https://mcmap.net/q/382141/-undefined-symbols-for-architecture-x86_64-on-xcode-6-1 ? Hope it explain the detailsWomankind
N
0

Delete Derived Data -> Clean -> Build

Novgorod answered 4/6, 2021 at 1:43 Comment(1)
Didn't work for me to deal with error undefined symbol: _OBJC_CLASS_$_Base64Xanthic

© 2022 - 2024 — McMap. All rights reserved.