Installation
See the subsections below for details about the different installation methods. Where
available, it's recommended to install any libraries with a Swift
suffix to get the
best experience when writing your app in Swift.
Standard pod install
For instructions on the standard pod install, visit: https://firebase.google.com/docs/ios/setup.
Swift Package Manager
Instructions for Swift Package Manager support can be found in the SwiftPackageManager.md Markdown file.
Installing from GitHub
These instructions can be used to access the Firebase repo at other branches, tags, or commits.
Background
See the Podfile Syntax Reference for instructions and options about overriding pod source locations.
Accessing 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 like the following:
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 FirebaseMessaging via a checked-out version of the firebase-ios-sdk repo:
pod 'FirebaseCore', :path => '/path/to/firebase-ios-sdk'
pod 'FirebaseMessaging', :path => '/path/to/firebase-ios-sdk'
Carthage (iOS only)
Instructions for the experimental Carthage distribution can be found at Carthage.md.
Using Firebase from a Framework or a library
For details on using Firebase from a Framework or a library, refer to firebase_in_libraries.md.