What is Cocoapods?
CocoaPods is the dependency manager for Swift and Objective-C Cocoa projects. It has almost ten thousand libraries and can help you scale your projects elegantly.
Open your terminal and type this command:
sudo gem install cocoapods
Init your xcode project.
Search for pod file in your xcode project (podfile). Then list the dependencies in a text file named Podfile in your Xcode project directory:
platform :ios, '8.0' use_frameworks! target 'MyApp' do pod 'AFNetworking', '~> 2.5' pod 'ORStackView', '~> 2.0' pod 'SwiftyJSON', '~> 2.1' end
Now you can install the dependencies in your project:
Open your *.xcworkspace.
You can verify it here to make sure your dependencies already installed.