cocoas pods

Cocoapods

Library management tool for Mac, iOS. CocoaPods.org

Install

Install using Ruby
By default, Mac has Ruby.

sudo gem install cocoapods

Set up

pod setup

Create ~/.cocoapods and manage library in the current directory

XCodeProject (xxxx.xcodeproj)
|- Podfile

Podfile

platform :ios, '6.0'
pod 'Library', '~> 2.0'

Install library in your project

Work with XCode
Move your project root, and create

Version

Description
‘1.0’ Version 1.0
‘> 1.0’ Above 1.0
‘>= 1.0’ More than 1.0
‘< 1.0' Low 1.0
‘<= 1.0' Less than 1.0
‘~> 1.0.1’ After 1.0.1, 1.0.x

Install

Move to Podfile directory and run following command

pod install

You should add ref by yourself.

Remove unused library

Remove library line and run command

pod update