Your First iOS and UIKit App · Web Views and Developer Documentation | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5993-your-first-ios-and-uikit-app/lessons/43

Hi all,

I found it shows error if I don’t add WebKit.framework library in the Linked Frameworks list.

Import WebKit in the AboutViewController.swift files it’s not enough.

I cut a snippet error message as below: (Xcode version: 10.3)

*...no class named WKWebView was found; the class needs to be defined in source code...*

Uploaded the place I add webkit library just in case someone like me(beginner) can’t find it.

58%20PM

Best,
Doma

1 Like

@domalu Thank you for sharing your solution - much appreciated! :]

1 Like

I beat on it for a while myself. Thanks for the tip. After I got rid of the errors mine still didn’t show the html. Important tip, spell the html file name EXACTLY as it is shown in the project pane. I spelled my file Bullseye. not BullsEye and all I got was a white screen.

Can anybody explain to me why you have to manually ad the library into the project? I thought that was what the “import WebKit” statement did? Seems like the import statement did nothing then?

@naplesdave Please check out the latest version of the course when you get a chance:

https://www.raywenderlich.com/16124941-uikit-fundamentals

I hope it helps!