如何在Objective-C(Xcode 4.2)中从libPusher实现静态库?

时间:2022-06-28 05:42:37

Please show me how I can add and implement the libPusher library to my Objective-C iOS project

This is my first post on *

I've just started working in Objective-C iOS app development for a company that I co-founded with a couple of colleagues. Our first app needs to have the libPusher library implemented in its porject. Right now, I'm at a crossroads completing the following task of adding and implementing it on Xcode 4.2:

我刚开始为一家与几位同事共同创办的公司开发Objective-C iOS应用程序。我们的第一个应用程序需要在其项目中实现libPusher库。现在,我正在十字路口完成在Xcode 4.2上添加和实现它的以下任务:

  • Simply copy libPusher-combined.a and the contents of the headers directory into your Xcode project..
  • 只需将libPusher-combined.a和headers目录的内容复制到Xcode项目中即可。

Source: http://github.com/lukeredpath/libPusher/wiki/Adding-libPusher-to-your-project

资料来源:http://github.com/lukeredpath/libPusher/wiki/Adding-libPusher-to-your-project

What does it mean by "copy"ing those files, and where should it be copied to? Can anybody who has experience with libPusher give me specific details as a list and source code on how to execute this so I can understand it better? I would truly appreciated any help, it will get our company up and running for us getting our app functioning and ready for reviewing submission to Apple Developer staff. The link I've provided will tell you more on what I'm talking about, if I need to specify anything I'll create a new post. Thanks!

“复制”这些文件是什么意思,它应该复制到哪里?任何有libPusher经验的人都可以提供具体的详细信息作为列表和源代码,了解如何执行此操作以便更好地理解它?我真的很感激任何帮助,它将使我们的公司启动并运行我们的应用程序运行,并准备审查提交给Apple开发人员。我提供的链接会告诉你更多我正在谈论的内容,如果我需要指定任何内容我将创建一个新帖子。谢谢!

2 个解决方案

#1


2  

What "copy" means in this context is that you want to drag and drop the .a (library) file and the header files (all the .h files) into your new Xcode project (to be precise: the file inspector is the list of files along the left side of the workspace window).

在这种情况下,“复制”意味着您要将.a(库)文件和头文件(所有.h文件)拖放到新的Xcode项目中(准确地说:文件检查器是列表)工作区窗口左侧的文件)。

#2


0  

To copy anything to an Xcode project, find it in the finder, highlight all of the files you want to copy over (or just take the folder it comes in), then drag everything over the Xcode icon in the dock.

要将任何内容复制到Xcode项目,在查找程序中找到它,突出显示要复制的所有文件(或者只是将其放入的文件夹),然后将所有内容拖到停靠栏中的Xcode图标上。

If Xcode is full screen (lion), the icon will kind of blink, then enter Mission Control mode, you then hold the files over the correct project and drop them into the Xcode file tree.

如果Xcode是全屏(狮子),图标将闪烁,然后进入任务控制模式,然后将文件保存在正确的项目上并将其放入Xcode文件树中。

Make sure that your application is checked as a target for those files!!

If Xcode is not full screen, just drag the files or folder into the Xcode file tree and they will be added.

如果Xcode不是全屏,只需将文件或文件夹拖到Xcode文件树中即可添加。

To link to a static library, just navigate to the name of your project>Info>Framworks. Click the plus, then select your framework if it isn't already there.

要链接到静态库,只需导航到项目名称>信息> Framworks。单击加号,然后选择您的框架(如果它尚不存在)。

#1


2  

What "copy" means in this context is that you want to drag and drop the .a (library) file and the header files (all the .h files) into your new Xcode project (to be precise: the file inspector is the list of files along the left side of the workspace window).

在这种情况下,“复制”意味着您要将.a(库)文件和头文件(所有.h文件)拖放到新的Xcode项目中(准确地说:文件检查器是列表)工作区窗口左侧的文件)。

#2


0  

To copy anything to an Xcode project, find it in the finder, highlight all of the files you want to copy over (or just take the folder it comes in), then drag everything over the Xcode icon in the dock.

要将任何内容复制到Xcode项目,在查找程序中找到它,突出显示要复制的所有文件(或者只是将其放入的文件夹),然后将所有内容拖到停靠栏中的Xcode图标上。

If Xcode is full screen (lion), the icon will kind of blink, then enter Mission Control mode, you then hold the files over the correct project and drop them into the Xcode file tree.

如果Xcode是全屏(狮子),图标将闪烁,然后进入任务控制模式,然后将文件保存在正确的项目上并将其放入Xcode文件树中。

Make sure that your application is checked as a target for those files!!

If Xcode is not full screen, just drag the files or folder into the Xcode file tree and they will be added.

如果Xcode不是全屏,只需将文件或文件夹拖到Xcode文件树中即可添加。

To link to a static library, just navigate to the name of your project>Info>Framworks. Click the plus, then select your framework if it isn't already there.

要链接到静态库,只需导航到项目名称>信息> Framworks。单击加号,然后选择您的框架(如果它尚不存在)。