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