美文网首页
Cocoapod 使用心得

Cocoapod 使用心得

作者: Dev_Mob | 来源:发表于2015-11-03 16:53 被阅读71次

    �一、安装cocoapods

    sudo gem install -n /usr/local/bin cocoapods
    pod setup
    sudo gem update —system
    

    ��二、�转换为天朝镜像
    请确保只有 ruby.taobao.org

    $ gem sources --remove https://rubygems.org/
    $ gem sources -a https://ruby.taobao.org/
    $ gem sources -l
    $ gem install rails
    

    �三、加入第三方代码

    cd  to you project
    pod init
    open -a Xcode Podfile
    pod 'AFNetworking', ‘2.2.1'
    pod install
    

    �四、更新库

    pod update --verbose
    

    参考链接:
    1、Introduction to CocoaPods Tutorial
    2、RubyGems 镜像 - 淘宝网

    相关文章

      网友评论

          本文标题:Cocoapod 使用心得

          本文链接:https://www.haomeiwen.com/subject/gpvqhttx.html