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

原文地址:https://www.cnblogs.com/lz465350/p/5976529.html