To integrate Firebase without using a dependency manager. Integrate manuallyįirebase provides a pre-built binary XCFramework distribution for users who want See theįor including Firebase in your app via Carthage. Find the run script here: $/FirebaseCrashlytics/run"Ĭarthage support is experimental. You can use a run script build phase for Xcode to automatically upload debug
CrashlyticsĬrashlytics requires you to upload debug symbols. Google Analytics requires adding the -ObjC linker flag to your target'sīuild settings if included transitively. Some Firebase products require extra integration steps in order to function product(name: "FirebaseAuth", package: "Firebase"), Then in any target that depends on a Firebase product, add it to the To integrate Firebase to a Swift package via a Package.swift manifest, you canĪdd Firebase to the dependencies array of your package. Once you're finished, Xcode will begin resolving your package dependencies andĭownloading them in the background. Recommend using the newest version of Firebase.Ĭhoose the Firebase libraries you want to include in your app. Select the version of Firebase you want to use. In the prompt that appears, select the Firebase GitHub repository:
In Xcode, install the Firebase libraries by navigating toįile > Swift Packages > Add Package Dependency… If you're adding Firebase to a projectįor the first time, this step can be ignored. xcworkspaceįile can safely be deleted afterward. If migrating from a CocoaPods-based project, run pod deintegrate to removeĬocoaPods from your Xcode project. Swift Package Manager support requires Xcode 12.5 or higher. CocoaPods is not required forįor Xcode versions 12.5 and higher, Swift Package Manager is the recommended Is out of beta and is generally available for use. Starting with v8.0.0 of the Firebase Apple SDK, Firebase's
Connect to the Cloud Functions emulator.Connect to the Cloud Firestore emulator.Connect to the Realtime Database emulator.