如何将模块导入Xcode [英] How to import module into xcode

查看:435
本文介绍了如何将模块导入Xcode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的快捷应用中使用socket.io.

I am trying to use socket.io in my swift app.

我是新手.

我正在按照 https://github.com/socketio/中的说明进行操作socket.io-client-swift

但这是问题所在,我不知道如何执行以下步骤.

but here is the problem, I don't understand how to do the following step.

(手动安装)将Source文件夹复制到Xcode项目中. (确保将文件添加到目标中)"

(Install Manually) "Copy the Source folder into your Xcode project. (Make sure you add the files to your target(s))"

我不知道该如何实现,我已经将SocketIO.h和整个文件夹添加到了项目中,但是无论如何,都找不到该模块.

I don't understand how to achieve this, I have "Added the SocketIO.h and the entire folder into the project, but no matter what, the module is not found.

我应该添加一些二进制文件吗,如果是的话,二进制文件是什么?扩展名是什么?如何识别?

Am i supposed to add some binaries, if so what are the binaries? What are the extension? How can I identify it?

这是我的xcode项目的图像....我在xcode中的屏幕图像

Here is the image of my xcode project....image of my screen in xcode

推荐答案

克隆或下载socket io项目时,将获得一个包含多个子目录的目录.子目录之一被命名为Source.只需将该文件夹拖入Xcode(放入左侧边栏的Project Navigator中).

When you clone or or download the socket io project you get a directory with multiple subdirectories. One of the subdirectories is named Source. Simply drag that folder into Xcode (into the Project Navigator in the left sidebar).

然后,您将看到如下屏幕:

You will then be presented with a screen like this:

确保在添加到目标"列表中选中您的应用复选框.这就是说明确保将文件添加到目标"的意思.

Make sure the box for your app is ticked in the "Add to targets" list. This is what the instructions mean by "Make sure you add the files to your target(s)"

这篇关于如何将模块导入Xcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆