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

posted @ 2016-11-01 19:35  levyleo  阅读(188)  评论(0编辑  收藏  举报