Timer countdown timer arc view
This directory contains the full Firebase distribution, packaged as static frameworks that can be integrated into your app.
Each Firebase component requires several frameworks in order to function properly. Each section below lists the frameworks you'll need to include in your project in order to use that Firebase SDK in your application.
To integrate a Firebase SDK with your app:
-
Find the desired SDK in the list below.
-
Make sure you have an Xcode project open in Xcode.
-
In Xcode, hit
⌘-1
to open the Project Navigator pane. It will open on left side of the Xcode window if it wasn't already open. -
Drag each framework from the "Analytics" directory into the Project Navigator pane. In the dialog box that appears, make sure the target you want the framework to be added to has a checkmark next to it, and that you've selected "Copy items if needed". If you already have Firebase frameworks in your project, make sure that you replace them with the new versions.
-
Drag each framework from the directory named after the SDK into the Project Navigator pane. Note that there may be no additional frameworks, in which case this directory will be empty. For instance, if you want the Database SDK, look in the Database folder for the required frameworks. In the dialog box that appears, make sure the target you want this framework to be added to has a checkmark next to it, and that you've selected "Copy items if needed."
Do not add the Firebase frameworks to the "Embed Frameworks" Xcode build phase. The Firebase frameworks are not embedded dynamic frameworks, but are (static frameworks)[https://www.raywenderlich.com/65964/create-a-framework-for-ios] which cannot be embedded into your application's bundle.
-
If the SDK has resources, go into the Resources folders, which will be in the SDK folder. Drag all of those resources into the Project Navigator, just like the frameworks, again making sure that the target you want to add these resources to has a checkmark next to it, and that you've selected "Copy items if needed".
-
Add the -ObjC flag to "Other Linker Settings": a. In your project settings, open the Settings panel for your target b. Go to the Build Settings tab and find the "Other Linker Flags" setting in the Linking section. c. Double-click the setting, click the '+' button, and add "-ObjC" (without quotes)
-
Drag the
Firebase.h
header in this directory into your project. This will allow you to#import "Firebase.h"
and start using any Firebase SDK that you have. -
If you're using Swift, or you want to use modules, drag module.modulemap into your project and update your User Header Search Paths to contain the directory that contains your module map.
-
You're done! Compile your target and start using Firebase.
If you want to add another SDK, repeat the steps above with the frameworks for the new SDK. You only need to add each framework once, so if you've already added a framework for one SDK, you don't need to add it again. Note that some frameworks are required by multiple SDKs, and so appear in multiple folders.
The Firebase frameworks list the system libraries and frameworks they depend on in their modulemaps. If you have disabled the "Link Frameworks Automatically" option in your Xcode project/workspace, you will need to add the system frameworks and libraries listed in each Firebase framework's .framework/Modules/module.modulemap file to your target's or targets' "Link Binary With Libraries" build phase.
"(~> X)" below means that the SDK requires all of the frameworks from X. You should make sure to include all of the frameworks from X when including the SDK.
- FirebaseAnalytics.framework
- FirebaseCore.framework
- FirebaseCoreDiagnostics.framework
- FirebaseNanoPB.framework
- FirebaseInstanceID.framework
- GoogleToolboxForMac.framework
- GoogleMobileAds.framework
- FirebaseAuth.framework
- GTMSessionFetcher.framework
- FirebaseCrash.framework
- Protobuf.framework
- FirebaseDatabase.framework
- FirebaseDynamicLinks.framework
- FirebaseDynamicLinks.framework
- FirebaseInvites.framework
- GTMOAuth2.framework
- GTMSessionFetcher.framework
- GoogleAPIClientForREST.framework
- GoogleSignIn.framework
- Protobuf.framework
You'll also need to add the resources in the Resources directory into your target's main bundle.
- FirebaseMessaging.framework
- Protobuf.framework
- FirebasePerformance.framework
- GTMSessionFetcher.framework
- Protobuf.framework
- FirebaseRemoteConfig.framework
- Protobuf.framework
- FirebaseStorage.framework
- GTMSessionFetcher.framework
You can get samples for Firebase from https://github.com/firebase/quickstart-ios:
git clone https://github.com/firebase/quickstart-ios
Note that several of the samples depend on SDKs that are not included with this archive; for example, FirebaseUI. For the samples that depend on SDKs not included in this archive, you'll need to use CocoaPods.
The frameworks in this directory map to these versions of the Firebase SDKs in CocoaPods.
CocoaPod | Version
----------------------------- | ------- Firebase | 4.0.0 FirebaseAnalytics | 4.0.0 FirebaseAuth | 4.0.0 FirebaseCore | 4.0.0 FirebaseCrash | 2.0.0 FirebaseDatabase | 4.0.0 FirebaseDynamicLinks | 2.0.0 FirebaseInstanceID | 2.0.0 FirebaseInvites | 2.0.0 FirebaseMessaging | 2.0.0 FirebasePerformance | 1.0.0 FirebaseRemoteConfig | 2.0.0 FirebaseStorage | 2.0.0 GTMOAuth2 | 1.1.4 GTMSessionFetcher | 1.1.9 Google-Mobile-Ads-SDK | 7.20.0 GoogleAPIClientForREST | 1.2.1 GoogleSignIn | 4.0.2 GoogleToolboxForMac | 2.1.1 Protobuf | 3.3.0