|
|
4 лет назад | |
|---|---|---|
| .. | ||
| FrameworkMaker.xcodeproj | d40c518e1a Rename ReleaseTooling (#6772) | 5 лет назад |
| FrameworkMaker.entitlements | d40c518e1a Rename ReleaseTooling (#6772) | 5 лет назад |
| Info.plist | d40c518e1a Rename ReleaseTooling (#6772) | 5 лет назад |
| README.md | 4b69fa066a Update binary install instructions to disable AdId (#9630) | 4 лет назад |
| dummy_Firebase_lib | d40c518e1a Rename ReleaseTooling (#6772) | 5 лет назад |
This directory contains the full Firebase iOS distribution, packaged as static xcframeworks that can be integrated into your app.
Each Firebase component requires several xcframeworks in order to function properly. Each section below lists the xcframeworks you'll need to include in your project in order to use that Firebase SDK in your application.
Xcode 13.2.1 or newer is required.
To integrate a Firebase SDK with your app:
⌘-1 to open the Project Navigator pane. It will open on
left side of the Xcode window if it wasn't already open.To disable AdId support, do not copy
GoogleAppMeasurementIdentitySupport.xcframework.
If the app does not use any Firebase Swift specific APIs, you do not need to copy any xcframeworks whose name includes "Swift" for this and the next step.
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 which cannot be embedded into your application's bundle.
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.module.modulemap into your project and update the
"User Header Search Paths" in your project's Build Settings to include the
directory that contains the added module map.If you want to add another SDK, repeat the steps above with the xcframeworks 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. Specifically, you may see the error
ld: warning: Could not find or use auto-linked framework... which is an
indicator that not all system libraries are being brought into your build
automatically.
"(~> X)" below means that the SDK requires all of the xcframeworks from X. You should make sure to include all of the xcframeworks from X when including the SDK.
INTEGRATION
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 or use the ZipBuilder to create your own custom binary frameworks.
The xcframeworks in this directory map to these versions of the Firebase SDKs in CocoaPods.
VERSIONS