Cocoapodsインストール
sudo gem install cocoapods
pod setup
プロジェクトにライブラリを設定
cd /Users/XXX/your_xcode_directory
pod init
Podfile編集
vim Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'XXXXX' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for XXXXX
# ここに追加したいライブラリを設定
pod 'SwiftyJSON'
pod 'Alamofire'
pod 'SDWebImage'
end