carthage 简单使用步骤

brew install carthage

切至项目目录:
cd xxx

创建Cartfile文件
vi Cartfile

填写依赖
git "https://xxxxx" "master" 分支
github "username/xxx" 例如:github "ccgus/fmdb"
git "file:///本地目录git目录"

安装依赖
carthage update

安装某一个依赖
carthage update xxx

安装对应的platform
carthage update --platform ios

原文地址:https://www.cnblogs.com/levy/p/carthage-shiyong.html