1. 安装
$ brew update //更新brew
$ brew install carthage //下载carthage
$ carthage version //查看当前carthage的版本号
2.项目中init
$ touch Cartfile //在项目中touch该文件 (同CocoPods:pod init)
$ open -a Xcode Cartfile (or $vim Cartfile)
在文件中编辑
github "Alamofire/Alamofire" ~> 4.4github "onevcat/Kingfisher" ~> 3.0
注Alamfire = AFN,Kingfisher = SDWebImage,SnapKit = Mansory;
3.获得lib工程
$ carthage update --platform iOS