1.tools-cocoapods

install: (Mac)

  we need change the gem sources firstly for the firewall 

gem install cocoa podsgem sources --remove https://rubygems.org/

gem sources -a http://ruby.taobao.org/

gem sources -l      // verify your demo sources is ok or not

 every thing is ok,  you could seen 

*** CURRENT SOURCES ***

http://ruby.taobao.org/

then execute the command below, it will take you about ten seconds to install cocoa pods

sudo gem install cocoapods


- usage  

pod search NiuBiFrameWork

cd your workspace directory

vim Profile

platform :ios, '7.0'

pod "AFNetworking", "~> 2.0"

:wq   //exit the vim 

pod update

reopen your workspace 


related blog:

 http://www.cnblogs.com/wengzilin/p/4742530.html

http://www.cocoachina.com/ios/20150228/11206.html




最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 一、前言 CocoaPods is the dependency manager for Swift and Ob...
    破晓霜林阅读 5,869评论 0 7
  • 秩序敏感期对孩子至关重要当婴儿出生之后,他周围就有了一个相对于子宫来说极为广大的空间,那里有极其丰富的事物。由于对...
    简白格阅读 2,187评论 0 0
  • 我不喜欢把这些心情冠以爱的名号,爱在我心中太过重了,必须是一心一意,纯洁、美丽。可是暗恋,不,连暗恋都算不上,暗暗...
    阿毛阅读 2,454评论 0 1
  • 我是在穷人家长大的。在我看来,什么建筑工人,民办教师,村干部,煤矿工人等等。,都是富人,他们家的孩子,都是富二代。...
    笑看繁华阅读 1,748评论 2 0