On May 23, 2015, at 09:52 , Dave <[email protected]> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to