开发者

<Growl/Growl.h> file not found in xcode

I'm trying to add a growl notification to an application for the mac but keep getting an error. I think I've followed the instructions right but something is wrong.Here's what I did:

I downloaded the growl SDK, added the Growl-WithInstaller.framework with "copy items into destination folder" checked.

Then added the framework to the build phase as copy files and set the destination to "frameworks".

I used an empty file to make the the growl registration ticket and dragged it to the copy bundle resources build phase.

Finally I added the GrowlApplicationBridgeDelegate to the @interface and the #import <Growl/Growl.h> to the header file.

When I build it I get an error saying that the Growl/Growl.h file was not found. It's there but it seems xcode cant find it. I imagine it's because I linked it wrong, any idea what the problem i开发者_JS百科s?

I've tried the growl website and general linking help topics but I haven't found a solution.

Thanks.


You have to link against the framework in your project build phases, not just copy the files.

To include a framework in your Xcode project, choose Project > Add to Project and select the framework directory. Alternatively, you can control-click your project group and choose Add Files > Existing Frameworks from the contextual menu. When you add an existing framework to your project, Xcode asks you to associate it with one or more targets in your project. Once associated, Xcode automatically links the framework against the resulting executable.

http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Tasks/IncludingFrameworks.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜