Carthage參考
搭建環(huán)境:
1.安裝 Homebrew


2.執(zhí)行:brew update

3.執(zhí)行:brew install carthage


4.在項目里創(chuàng)建 cartfile文件 執(zhí)行:vim Cartfile

按i進入編輯模式,加入你要下載框架

按ESC 在輸入:wq保存

5.執(zhí)行:carthage update 或者 carthage update --platform iOS (--platform iOS 只為ios編譯framework文件) clone 框架到你的項目里

上面提示我更新carthage,發(fā)現(xiàn)brew update更新不下來,可以先刪除brew remove carthage 去Carthage參考 下載最新的pkg.
如果你下載產(chǎn)生下面的錯誤,說明你安裝了多個xcode

可以卸載掉多余的,或者在xcode中設置

下載成功:


04E06F13-7055-4ECD-939E-0010DFEDF20B.png
6.在項目中添加:


