The dependencies for your projects are specified in a single text file called a Podfile. CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project.
Create a podfile
# Next line contains target platform settings
platform :ios, '8.0'
# Use dynamic Frameworks
use_frameworks!
# Target name
target 'MyApp' do
# List of target dependencies
pod 'ObjectiveSugar', '~> 1.1'
pod 'ORStackView', '~> 3.0'
pod 'RxSwift', '~> 2.6'
end
Install dependencies. The process of dependencies installation is done by executing this command through terminal in the project directory:
pod install
Updating dependencies to new versions:
Updating specific pod
pod update RxSwift
Updating all pods
pod update