I followed the instruction from Cocoapods.
Below is my Podfile:
platform :ios, \'8.2\' pod \'SwiftyJSON\', \'~> 2.1\' pod \'SwiftSpinner\', \'~&
Add "use_frameworks!" to your Podfile:
Please see below sample Podfile
target 'MySample' do pod 'AFNetworking', '~> 2.5' pod 'Net', '~> 0.2' #This is a sample in Swift use_frameworks! # <--Use this line end