How to add a new framework to the existing project using cocoapodes?


I have my existing project QuickGame where I would like to add frameworks (SwiftyJSON and Alamofire) using cocoapods. I installed cocoapods and I created a pod file in my app folder, but now, I don't know how this pod file should looks like, to instal this frameworks in my existing project.

Your pod file should look like this :

platform :ios, '9.0'

target 'YOUR_TARGET_NAME' do
pod 'SwiftyJSON', :git => ''
pod 'Alamofire',  :git => ''

Then go to the terminal -> cd [your source folder where the pod file is hosted] -> then do : pod install

let me know if this help you