As you're developing your Apple app using Firebase, you might discover concepts that are unfamiliar or specific to Firebase. This page aims to answer those questions or point you to resources to learn more.
If you have questions about a topic not covered on this page, feel free to visit one of our online communities. We'll also update this page with new topics periodically, so check back to see if we've added the topic you want to learn about!
Firebase library support by platform
The following table describes which Firebase libraries are compatible with which Apple platforms. For the time being, watchOS is community-supported only. See the Firebase Apple platforms SDK GitHub repository for installation instructions and known issues.
|Analytics without Ad ID||v8.9.0+||v8.9.0+||v8.9.0+|
|Analytics on-device conversion|
|App Check DeviceCheck provider||watchOS 9+|
|App Check App Attest provider||iOS 14+||macOS 11+||Catalyst 14+||tvOS 15+||watchOS 9+|
|App Check custom and debug providers|
|Firebase ML Model Downloader|
Most Firebase libraries will build and run in an App Clip target, however, many are restricted as a result of underlying OS restrictions. Known issues include:
- Dynamic Links cannot send users to an App Clip if they tap a link without the app installed.
- Firestore and Realtime Database cannot load data in App Clips due to an underlying CFStream dependency.
See the Firebase GitHub repository for a full list of known App Clip issues.
As part of adding Firebase to your Apple project, you need to add the
GoogleService-Info.plist configuration file to your project. If you want to
use multiple Firebase projects in a single app, visit the documentation for
configuring multiple projects.
See the Swift reference documentation to learn about the Firebase app initialization process in more detail.
Swift Package Manager
Learn more about Swift Package Manager integration in our guide.
Firebase Apple platform SDK Swift extensions are small, open-source add-ons to the existing Firebase Apple platform libraries that enable your code to use Swift language-specific features.
The following Swift extension frameworks are available:
Starting in Firebase 9.0, some Firebase libraries, including their Objective-C interfaces, are implemented in Swift and provide Swift-native features without the inclusion of an auxiliary dependency. The following SDKs provide native Swift APIs without the use of an extension SDK:
You can install Swift extensions either with CocoaPods or with Swift Package Manager. Using CocoaPods, to install a Swift extension, include it in your Podfile as shown below.
pod 'FirebaseAnalyticsSwift', '~> 10.0' pod 'FirebaseInAppMessagingSwift', '~> 10.0-beta' pod 'FirebaseDatabaseSwift'
With Swift Package Manager, import the desired Swift extension libraries directly from the same repository as the Firebase Apple platforms SDK.
Firebase fully supports SwiftUI, though the setup will be slightly different from UIKit apps in order for Firebase to function correctly in a fully SwiftUI environment. Take a look at this blog post by Peter Friese for more details.
App delegate swizzling
Firebase swizzles some methods in your app's app delegate class to
automatically connect certain Firebase services to OS callbacks, like
FCM and the APNs token. You can disable swizzling in your app by
adding the flag
FirebaseAppDelegateProxyEnabled in the app’s
and setting it to
Four Firebase products use App Delegate swizzling: Analytics, App Distribution, Authentication, and FCM. If you've disabled swizzling in your application and you use any of the following products, refer to the product-specific guide to learn about how to use the product without swizzling:
Supporting iOS 14
iOS 14 includes new changes to user permissions surrounding the user's advertising identifier. See the preparing for iOS 14 guide for more details on whether or not your app may be affected.
Ongoing support for Objective-C
To ease maintenance of our Apple platforms documentation, Firebase has decided to concentrate on Swift snippets and code samples in our guides and other developer materials. Objective-C snippets will be removed from our guides starting January 1, 2024. We will continue to maintain up-to-date reference documentation for Objective-C for all Firebase products.
Open source resources for Firebase Apple platform SDKs
Firebase supports open source development, and we encourage community contributions and feedback.
Firebase Apple platform SDKs
All Firebase SDKs for Apple platforms except Analytics are developed as open source libraries in our public Firebase GitHub repository.
FirebaseUI is a set of utility libraries built on Firebase, including a drop-in UI flow for authentication and data utilities for Cloud Firestore and Realtime Database. See more details about FirebaseUI on our GitHub page.
Firebase maintains a collection of quickstart samples for most Firebase APIs on iOS. Find these quickstarts in our public Firebase GitHub quickstart repository.
You can open each quickstart in Xcode, then run them on a mobile device or simulator. Or you can use these quickstarts as example code for using Firebase SDKs.