Halal Pairs - A muslims matrimony app

Setup firebase for iOS


Setup firebase for iOS

How to Configure an iOS App with Firebase

Step-by-Step Guide

  1. Create a Firebase Project:
    Go to Firebase Console, click on Add project, and follow the prompts.
  2. Register Your iOS App:
    In the Firebase project dashboard, click the iOS icon to add a new app.
    Enter your app’s iOS bundle ID (e.g., com.example.myapp). You may optionally set the app nickname and App Store ID.
  3. Download GoogleService-Info.plist:
    After registering the app, download the GoogleService-Info.plist file.
    Add it to your Xcode project by dragging it into the project navigator.
  4. Install Firebase SDK:
    Open your project’s Podfile and add Firebase dependencies. For example:
    pod 'Firebase/Core'
    Then run:
    pod install
  5. Initialize Firebase in Your App:
    Open AppDelegate.swift and import Firebase:
    import Firebase
    Then initialize it in the application(_:didFinishLaunchingWithOptions:) method:
    FirebaseApp.configure()
  6. Build and Run:
    Open the .xcworkspace file in Xcode.
    Build and run the app to verify Firebase is correctly configured.

Note: For using additional Firebase services like Analytics, Firestore, or Auth, include the respective pods and follow their specific setup instructions.