carthage Tour

carthage iOS 第三方管理工具,本来不打算学习这个东西了,但是最近在看一些工程总是会遇到它,索性在这里记录下如何去使用 carthage 。

目标

  • Mac 构建 carthage 环境 & 了解 carthage
  • carthage 引入第三方
  • 初步了解 carthage 的原理
  • carthage 限制
  • carthage 与 CocoaPods 同时使用

搭建 carthage 环境

因为 Mac 有 brew 神器,闭着眼也知道怎么安装了 brew install carthage

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ brew install carthage
$ which carthage
/usr/local/bin/carthage
$ carthage help
Available commands:

archive Archives built frameworks into a zip that Carthage can use
bootstrap Check out and build the project's dependencies
build Build the project's dependencies
checkout Check out the project's dependencies
copy-frameworks In a Run Script build phase, copies each framework specified by a SCRIPT_INPUT_FILE environment variable into the built app bundle
fetch Clones or fetches a Git repository ahead of time
help Display general or command-specific help
outdated Check for compatible updates to the project's dependencies
update Update and rebuild the project's dependencies
version Display the current version of Carthage
-------------本文结束谢谢欣赏-------------
Alice wechat