https://guides.cocoapods.org/using/getting-started.html
Installation
$ sudo gem install cocoapods
Sudo-less installation
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
Updating CocoaPods
$ [sudo] gem install cocoapods
Prepare the Podfile
The podfile is the pod configuration file for your project and is placed in the root directory of your project.
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'iOS' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for iOS
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Firebase/Firestore'
pod 'FirebaseFirestoreSwift'
end
target 'macOS' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for macOS
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Firebase/Firestore'
pod 'FirebaseFirestoreSwift'
end
Install Pod Files
From the root project directory run.
$ pod install
Leave a Reply