zoukankan      html  css  js  c++  java
  • pod 安装总结

    参考http://code4app.com/article/cocoapods-install-usage

    http://www.jianshu.com/p/32d9cfb91471

    原文:http://code4app.com/article/cocoapods-install-usage

     pod 语法,可参考http://www.jianshu.com/p/8af475c4f717

    总结:

    1.gem sources –l

     

    2.sudo gem sources -a https://ruby.taobao.org/

     

    3.sudo gem sources -r https://rubygems.org/

     

    4.sudo gem install cocoapods (xcode8 sudo gem install cocoapods --pre)

     

    5.pod setup

     

    6.cd 工程目录

     

    7.pod search AFNetworking

     

    8.vim Podfile  xcode打开Podfile

     

    9.platform :ios, '8.0'

      pod "AFNetworking"

     

    10.:wq

     

    11.pod install --no-repo-update(创建时只用一次)

     

    12.pod update --no-repo-update(不管是更新旧的还是安装新的,都用它)

     

    13.vim Podfile  xcode打开Podfile

     

    14.Podfile文件的写法有很多种,例如:

    platform :ios, '7.0'
    target 'testActiveView' do
    pod 'AFNetworking', '~> 2.6'
    pod 'ORStackView', '~> 3.0'

    pod 'BarrageRenderer',:path => '../'
    pod 'MLEmojiLabel', '1.0.0'

    end

    写法参考:http://blog.csdn.net/sjl_leaf/article/details/50506057 

    15.pod update --no-repo-update

  • 相关阅读:
    First blog
    MyBatis Generator 配置详解
    JQueryValidate添加自定义方法校验密码
    MySQL学习(二)
    JVM原理讲解和调优
    一道HashMap面试题
    Nginx配置文件详细说明
    springboot系列文章之实现跨域请求(CORS)
    java多线程中的synchronized的byte[0]
    JVM常用命令
  • 原文地址:https://www.cnblogs.com/lz465350/p/5976529.html
Copyright © 2011-2022 走看看