How to correctly create carthage cartfile?

后端 未结 3 1270
星月不相逢
星月不相逢 2021-01-30 08:41

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

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

I\'

3条回答
  •  悲哀的现实
    2021-01-30 08:45

    From the command line, navigate to your project directory.

    touch Cartfile
    

    Now the Cartfile is created, make it executable with:

    chmod +x [YourDirectory/Cartfile]
    

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

提交回复
热议问题