Installation
See the subsections below for details about the different installation methods.
Where available, it's recommended to install libraries with a Swift suffix to
get the best experience when writing your app in Swift.
Swift Package Manager installation
Find instructions for installing using Swift Package Manager in the Firebase get started documentation.
CocoaPods installation
Find instructions for installing with CocoaPods (pod install) in the
Firebase installation options documentation.
Note: To accommodate the read-only announcement from CocoaPods, Firebase will stop publishing new versions to CocoaPods in October 2026. Learn more.
Install from GitHub
You can install from GitHub to access the Firebase repo at other branches, tags, or commits.
Background
For instructions and options about overriding pod source locations, see the Podfile Syntax Reference.
Access Firebase source snapshots
All official releases are tagged in this repo and available via CocoaPods. To
access a local source snapshot or unreleased branch, use Podfile directives.
Here are some example directives which use FirebaseFirestore as the example
library.
To access FirebaseFirestore via a branch:
pod 'FirebaseCore', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :branch => 'main'
pod 'FirebaseFirestore', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :branch => 'main'
To access FirebaseFirestore via a checked-out version of the firebase-ios-sdk repo:
pod 'FirebaseCore', :path => '/path/to/firebase-ios-sdk'
pod 'FirebaseFirestore', :path => '/path/to/firebase-ios-sdk'
Carthage (iOS only)
Find instructions for the experimental Carthage distribution (iOS only) at Carthage.md within this repo.
Use Firebase from a Framework or a library
Find details about using Firebase from a Framework or a library at firebase_in_libraries.md within this repo.