Following the End-of-Support (EoS) for the core Analytics-iOS SDK in March 2026, this legacy integration repository is also deprecated and will no longer receive updates.
Segment's future development efforts are concentrated on the new Analytics-Swift ecosystem.
- To migrate your core SDK, please see the Analytics-iOS to Analytics-Swift migration guide.
- To find the modern Swift equivalent for this specific integration, check the Analytics-Swift Destination Plugins list.
To run the example project, clone the repo, and run pod install from the Example directory first.
Segment-Firebase is currently only available through CocoaPods.
Register your app in the Firebase console and add the GoogleService-Info.plist to the root of your Xcode project.
Add the following dependency to your Podfile:
pod 'Segment-Firebase'
After adding the dependency and running pod install, import the integration:
#import <Segment-Firebase/SEGFirebaseIntegrationFactory.h>
Finally, register the dependency with the Segment SDK:
[config use:[SEGFirebaseIntegrationFactory instance]];
By default, Segment only bundles Firebase/Core which is Firebase's Analytics offering. You can see the other available Firebase pods and features here.
Segment-Firebase is available under the MIT license. See the LICENSE file for more info.