如何正确创建carthage cartfile? [英] How to correctly create carthage cartfile?

查看:299
本文介绍了如何正确创建carthage cartfile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在查看cartfile。迫不及待地简单地创建一个cartfile就像所有说明要做的那样。

I'm looking into cartfile. Can't wait to "simply create a cartfile" like all the instructions say to do.

只有......你怎么简单地创建一个Cartfile?

Only... how do you "simply" create a Cartfile?

我创建了一个纯文本文档,将其命名为cartfile并在其中复制了一些依赖项。

I've created a plain text document, named it cartfile and copied some dependencies in it.

Ran carthage update 在我的根项目目录中

Ran carthage update inside my root project directory

得到此错误:目录中没有此类文件

Get this error: "No such file in directory"

下载了一个示例carthage项目,Cartfile实际上是一个可执行文件..那么如何简单地创建一个Cartfile,因为没有任何关于如何

Downloaded an example carthage project and the Cartfile is actually an executable.. So how do I "simply create" a Cartfile, cause there aren't any instructions on how to

推荐答案

从命令行导航到项目目录。

From the command line, navigate to your project directory.

touch Cartfile

现在创建Cartfile,使其可执行:

Now the Cartfile is created, make it executable with:

chmod +x [YourDirectory/Cartfile]

您可以使用任何文本编辑器打开它。然后插入你想要的任何库和源代码(例如: githubSwiftyJSON / SwiftyJSON> = 2.1.2

You can open it with any text editor. Then insert whatever library and source you want (Example: github "SwiftyJSON/SwiftyJSON" >= 2.1.2)

这篇关于如何正确创建carthage cartfile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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