ArchiveorgSoftwareFirebase iOS SDK This repository contains all Apple platform Firebase SDK source except FirebaseAnalyticsand FirebaseML.Firebase is an app development platform with tools to help you build, grow andmonetize your app. More information about Firebase can be found athttps://firebase.google.com[1].The repository also includes GoogleUtilities and GoogleDataTransport sourcewhich are utilities used by Firebase and other Google products.InstallationSee the subsections below for details about the different installation methods.1. Standard pod install1. Swift Package Manager (Beta)1. Installing from the GitHub repo1. Experimental Carthage[2][3][4][5]Standard pod installGo tohttps://firebase.google.com/docs/ios/setup[6]. If youhave a new Mac with an Apple silicon chip, please see these instructions[7].Swift Package Manager (Beta)Instructions for the Beta of Swift Package Manager[8]support can be found at SwiftPackageManager.md[9].Installing from GitHubThese instructions can be used to access the Firebase repo at other branches,tags, or commits.BackgroundSeethe Podfile Syntax Reference[10]for instructions and options about overriding pod source locations.Accessing Firebase Source SnapshotsAll of the official releases are tagged in this repo and available via CocoaPods. To access a localsource snapshot or unreleased branch, use Podfile directives like the following:To access FirebaseFirestore via a branch:pod 'FirebaseCore', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :branch => 'master'pod 'FirebaseFirestore', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :branch => 'master'To access FirebaseMessaging via a checked out version of the firebase-ios-sdk repo do:pod 'FirebaseCore', :path => '/path/to/firebase-ios-sdk'pod 'FirebaseMessaging', :path => '/path/to/firebase-ios-sdk'Carthage (iOS only)Instructions for the experimental Carthage distribution are atCarthage[11]. If you have a new Mac with an Apple silicon chip, please seethese instructions[12].Using Firebase from a Framework or a libraryUsing Firebase from a Framework or a library[13]DevelopmentTo develop Firebase software in this repository, ensure that you have at leastthe following software:CocoaPods is still the canonical way to develop, but much of the repo now supportsdevelopment with Swift Package Manager.CocoaPodsInstall * CocoaPods 1.10.0 (or later) * CocoaPods generate[14]For the pod that you want to develop:pod gen Firebase{name here}.podspec --local-sources=./ --auto-open --platforms=iosNote: If the CocoaPods cache is out of date, you may need to runpod repo update before the pod gen command.Note: Set the --platforms option to macos or tvos to develop/test forthose platforms. Since 10.2, Xcode does not properly handle multi-platformCocoaPods workspaces.Firestore has a self contained Xcode project. SeeFirestore/README.md[15].Development for Catalystpod gen {name here}.podspec --local-sources=./ --auto-open --platforms=iosCheck the Mac box in the App-iOS Build SettingsSign the App in the Settings Signing & Capabilities tabClick Pods in the Project ManagerAdd Signing to the iOS host app and unit test targetsSelect the Unit-unit schemeRun it to build and testAlternatively disable signing in each target:* Go to Build Settings tab* Click +* Select Add User-Defined Setting* Add CODE_SIGNING_REQUIRED setting with a value of NOSwift Package Manageropen Package.swift or double click Package.swift in Finder.Xcode will open the projectChoose a scheme for a library to build or test suite to runChoose a target platform by selecting the run destination along with the schemeAdding a New Firebase PodSee AddNewPod.md[16].Managing Headers and ImportsSee HeadersImports.md[17].Code FormattingTo ensure that the code is formatted consistently, run the script./scripts/check.sh[18]before creating a PR.GitHub Actions will verify that any code changes are done in a style compliantway. Install clang-format and mint:brew install clang-format@11brew install mintRunning Unit TestsSelect a scheme and press Command-u to build a component and run its unit tests.Running Sample AppsIn order to run the sample apps and integration tests, you'll need a validGoogleService-Info.plist file. The Firebase Xcode project contains dummy plistfiles without real values, but can be replaced with real plist files. To get your ownGoogleService-Info.plist files:Go to the Firebase Console[19]Create a new Firebase project, if you don't already have oneFor each sample app you want to test, create a new Firebase app with the sample app's bundleidentifier (e.g. com.google.Database-Example)Download the resulting GoogleService-Info.plist and add it to the Xcode project.Specific Component InstructionsSee the sections below for any special instructions for those components.Firebase AuthIf you're doing specific Firebase Auth development, seethe Auth Sample README[20] for instructions aboutbuilding and running the FirebaseAuth pod along with various samples and tests.Firebase DatabaseThe Firebase Database Integration tests can be run against a locally running Database Emulatoror against a production instance.To run against a local emulator instance, invoke ./scripts/run_database_emulator.sh start beforerunning the integration test.To run against a production instance, provide a valid GoogleServices-Info.plist and copy it toFirebaseDatabase/Tests/Resources/GoogleService-Info.plist. Your Security Rule must be set topublic[21] while your tests arerunning.Firebase Performance MonitoringIf you're doing specific Firebase Performance Monitoring development, seethe Performance README[22] for instructions about building the SDKand the Performance TestApp README[23] for instructions aboutintegrating Performance with the dev test App.Firebase StorageTo run the Storage Integration tests, follow the instructions inFIRStorageIntegrationTests.m[24].Push NotificationsPush notifications can only be delivered to specially provisioned App IDs in the developer portal.In order to actually test receiving push notifications, you will need to:Change the bundle identifier of the sample app to something you own in your Apple Developeraccount, and enable that App ID for push notifications.You'll also need toupload your APNs Provider Authentication Key or certificate to theFirebase Console[25]at Project Settings > Cloud Messaging > [Your Firebase App].Ensure your iOS device is added to your Apple Developer portal as a test device.iOS SimulatorThe iOS Simulator cannot register for remote notifications, and will not receive push notifications.In order to receive push notifications, you'll have to follow the steps above and run the app on aphysical device.Community Supported EffortsWe've seen an amazing amount of interest and contributions to improve the Firebase SDKs, and we arevery grateful! We'd like to empower as many developers as we can to be able to use Firebase andparticipate in the Firebase community.tvOS, macOS, watchOS and CatalystThanks to contributions from the community, many of Firebase SDKs now compile, run unit tests, andwork on tvOS, macOS, watchOS and Catalyst.For tvOS, see the Sample[26].For watchOS, currently only Messaging, Storage and Crashlytics (and their dependencies) have limitedsupport. See the Independent Watch App Sample[27].Keep in mind that macOS, tvOS, watchOS and Catalyst are not officially supported by Firebase, andthis repository is actively developed primarily for iOS. While we can catch basic unit test issueswith GitHub Actions, there may be some changes where the SDK no longer works as expected on macOS,tvOS or watchOS. If you encounter this, pleasefile an issue[28].During app setup in the console, you may get to a step that mentions something like "Checking if theapp has communicated with our servers". This relies on Analytics and will not work onmacOS/tvOS/watchOS/Catalyst.It's safe to ignore the message and continue, the rest of the SDKs will work as expected.To install, add a subset of the following to the Podfile:pod 'Firebase/ABTesting'pod 'Firebase/Auth' # Limited watchOS supportpod 'Firebase/Crashlytics'pod 'Firebase/Database' # No watchOS support yetpod 'Firebase/Firestore' # No watchOS support yetpod 'Firebase/Functions' # No watchOS support yetpod 'Firebase/Messaging'pod 'Firebase/Performance' # No macOS, tvOS, watchOS, and Catalyst support yetpod 'Firebase/RemoteConfig'pod 'Firebase/Storage'Additional Catalyst NotesFirebaseAuth and FirebaseMessaging require adding Keychain Sharing Capabilityto Build Settings.FirebaseFirestore requires signing thegRPC Resource target[29].Additional Crashlytics NoteswatchOS has limited support. Due to watchOS restrictions, mach exceptions and signal crashes arenot recorded. (Crashes in SwiftUI are generated as mach exceptions, so will not be recorded)RoadmapSee Roadmap[30] for more about the Firebase iOS SDK Open Sourceplans and directions.ContributingSee Contributing[31] for more information on contributing to the FirebaseiOS SDK.LicenseThe contents of this repository is licensed under theApache License, version 2.0[32].Your use of Firebase is governed by theTerms of Service for Firebase Services[33]. To restore the repository download the bundle wget https://archive.org/download/github.com-firebase-firebase-ios-sdk_-_2021-03-02_07-04-41/firebase-firebase-ios-sdk_-_2021-03-02_07-04-41.bundle and run: git clone firebase-firebase-ios-sdk_-_2021-03-02_07-04-41.bundle Source: https://github.com/firebase/firebase-ios-sdk[34]Uploader: firebase[35]Upload date: 2021-03-02 References^ https://firebase.google.com (firebase.google.com)^ Standard pod install (archive.org)^ Swift Package Manager (Beta) (archive.org)^ Installing from the GitHub repo (archive.org)^ Experimental Carthage (archive.org)^ https://firebase.google.com/docs/ios/setup (firebase.google.com)^ these instructions (archive.org)^ Swift Package Manager (swift.org)^ SwiftPackageManager.md (archive.org)^ the Podfile Syntax Reference (guides.cocoapods.org)^ Carthage (archive.org)^ these instructions (archive.org)^ Using Firebase from a Framework or a library (archive.org)^ CocoaPods generate (github.com)^ Firestore/README.md (archive.org)^ AddNewPod.md (archive.org)^ HeadersImports.md (archive.org)^ ./scripts/check.sh (github.com)^ Firebase Console (console.firebase.google.com)^ the Auth Sample README (archive.org)^ public (firebase.google.com)^ the Performance README (archive.org)^ the Performance TestApp README (archive.org)^ FIRStorageIntegrationTests.m (archive.org)^ upload your APNs Provider Authentication Key or certificate to theFirebase Console (firebase.google.com)^ Sample (archive.org)^ Independent Watch App Sample (archive.org)^ file an issue (github.com)^ gRPC Resource target (github.com)^ Roadmap (archive.org)^ Contributing (archive.org)^ Apache License, version 2.0 (www.apache.org)^ Terms of Service for Firebase Services (firebase.google.com)^ https://github.com/firebase/firebase-ios-sdk (github.com)^ firebase (github.com)

weiterlesen: RSS Quelle öffnen