CocoaPods is the dependency manager for Swift and Objective-C Cocoa projects. CocoaPods is like NPM from the Node.js world.
usage
$ sudo gem install cocoapods(如果不成功的话先执行下面一步,再重新执行这步)
gem install rubygems-update
pod init //create a Podfile with smart defaults.
编辑 Podfile之后
example file:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "7.1"
pod 'SVProgressHUD', :head
pod install
open App.xcworkspace the project file when building your project: