• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem Adding WebKit Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem Adding WebKit Framework (From: Dave <email@hidden>)

  • Prev by Date: Problem Adding WebKit Framework
  • Next by Date: Re: Problem Adding WebKit Framework
  • Previous by thread: Problem Adding WebKit Framework
  • Next by thread: Re: Problem Adding WebKit Framework
  • Index(es):
    • Date
    • Thread