我正在尝试向 Mac 的应用程序添加咆哮通知,但不断收到错误消息。我认为我已经正确遵循了说明,但出了点问题。这就是我所做的:
我下载了growl SDK,添加了Growl-WithInstaller.framework
,并选中了“将项目复制到目标文件夹”。
然后将框架作为复制文件添加到构建阶段,并将目标设置为“框架”。
我使用一个空文件来制作咆哮注册票并将其拖到复制捆绑资源构建阶段。
最后,我将 GrowlApplicationBridgeDelegate
添加到 @interface
并将 #import
添加到头文件。
当我构建它时,我收到一条错误消息,指出找不到 Growl/Growl.h
文件。它在那里,但 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 is?
I've tried the growl website and general linking help topics but I haven't found a solution.
Thanks.
发布评论
评论(1)
您必须在项目构建阶段链接框架,而不仅仅是复制文件。
http://developer.apple.com/库/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Tasks/InclusionFrameworks.html
You have to link against the framework in your project build phases, not just copy the files.
http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Tasks/IncludingFrameworks.html