###安装Carthage:
推荐使用HomeBrew进行安装
$ brew install carthage
###使用Carthage
1.先进入到项目.xcodeproj所在文件夹
$ cd 项目路径
2.创建一个空的Carthage文件
$ touch Cartfile
3.编辑cartfile文件,添加依赖框架
1 | github "Alamofire/AlamofireImage" |
4.保存并关闭cartfile文件,进行安装
$ carthage update --no-use-binaries --platform ios
其他
多个Xcode
多个 Xcode 版本用 DEVELOPER_DIR 指定就行
在编码时看第三方源码
加 Carthage update –configuration Debug
引用: