美文网首页
CocoaPods的安装

CocoaPods的安装

作者: 年轻在于折腾 | 来源:发表于2016-03-29 16:29 被阅读52次
  • 安装CocoaPods的步骤:

    1. 升级一下gem sudo gem update --system
    • 切换CocoaPods的数据源
    gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
    
    gem sources -l
    
    • 安装CocoaPods sudo gem install cocoapods 备注:苹果系统升级 OS X EL Capitan 后改为 sudo gem install -n /usr/local/bin cocoapods

    • 将podspec文件托管地址从github替换为国内oschina

    /*
    两个托管地址选其中一个,据说pod repo add master https://gitcafe.com/akuandev/Specs.git这个更快
    
    pod repo add master http://git.oschina.net/akuandev/Specs.git
    pod repo add master https://gitcafe.com/akuandev/Specs.git
    */
    
    pod repo remove master
    
    pod repo add master https://gitcafe.com/akuandev/Specs.git
    
    pod repo update
    

相关文章

网友评论

      本文标题:CocoaPods的安装

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