Installation
See the subsections below for details about the different installation methods.
- Standard pod install
- Swift Package Manager (Beta)
- Installing from the GitHub repo
- Experimental Carthage
Standard pod install
Go to https://firebase.google.com/docs/ios/setup. If you have a new Mac with an Apple silicon chip, please see these instructions.
Swift Package Manager (Beta)
Instructions for the Beta of Swift Package Manager support can be found at SwiftPackageManager.md.
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 of the 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 => 'master'
pod 'FirebaseFirestore', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :branch => 'master'
To access FirebaseMessaging via a checked out version of the firebase-ios-sdk repo do:
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 are at Carthage. If you have a new Mac with an Apple silicon chip, please see these instructions.