pod

安装Cocoapods

2016-07-02  本文已影响39人  FlyingPenguin

1 Cocoapods简介

https://cocoapods.org/

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over eighteen thousand libraries and can help you scale your projects elegantly.

2 安装Cocoapods

CocoaPods is built with Ruby and is installable with the default Ruby available on OS X.

2.1 替换Ruby源

ruby默认引用的Amazon S3的资源文件, 由于国内网络原因(你懂的), 所以将ruby源修改为淘宝的RubyGems 镜像.

$ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/ $ gem sources -l

2.2 安装cocoapods

sudo gem install cocoapods
pod setup

成功后就可以用pod install安装cocoapods库.

3 遇到的问题及解决

上一篇 下一篇

猜你喜欢

热点阅读