新的依赖管理工具:Carthage

2016-06-16  本文已影响137人  Clang的技术博客

1、什么是Carthage

2、Carthage与CocoaPods的不同

3、安装Carthage

    curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
    brew update
    sudo brew install carthage
    sudo brew uninstall carthage

4、使用Carthage

    \# 必须最低 2.3.1 版本
    github "ReactiveCocoa/ReactiveCocoa" >= 2.3.1

    \# 必须 1.x 版本
    github "Mantle/Mantle" ~> 1.0    # (大于或等于 1.0 ,小于 2.0)

    \# 必须 0.4.1 版本

    github "jspahrsummers/libextobjc" == 0.4.1

    \# 使用最新的版本

    github "jspahrsummers/xcconfigs"

    \# 使用一个私有项目,在 "development" 分支
    git "https://enterprise.local/desktop/git-error-translations.git" "development"
iOS新的依赖管理工具:Carthage_1.png

转载请注明原地址,Clang的博客:https://chenhu1001.github.io 谢谢!

上一篇 下一篇

猜你喜欢

热点阅读