Re: Problem Adding WebKit Framework
Re: Problem Adding WebKit Framework
- Subject: Re: Problem Adding WebKit Framework
- From: Quincey Morris <email@hidden>
- Date: Sat, 23 May 2015 17:33:16 +0000
On May 23, 2015, at 09:52 , Dave <email@hidden> wrote:
Right Click on Cocoa.framework in the Project and Select Reveal in Finder.
In the Finder Folder, find the WebKit.framework file and drag it into the same group as Cocoa.framework in the XCode Project.
Then, in the Source file of the class I want to use WebKit on, I add:
#import <WebKit/WebKit.h>
But I get an error "WebKit/WebKit.h Not Found" when I try to compile the project.
Since we live in the modern world, there’s a modern way to do this:
Step 1: Add this to the source file of the class you want to us WebKit in:
@import WebKit;
Step 2: There is no step 2.
No need to find the framework, no need to add it to your project. (However, if this project was created with an earlier version of Xcode, you should check that the Use Modules build setting is set to YES.)
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden