1.tools-cocoapods

2017-09-22  本文已影响0人  嘛尼嘛哄

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


上一篇 下一篇

猜你喜欢

热点阅读