Make sure that you enter the ID that your app is
actually using. You cannot add or modify this value after you register
your app with your Firebase project.

Find this bundle ID by opening your app in XCode, then accessing the
General tab in the top-level Runner directory. The value of the
Bundle Identifier field is the iOS bundle ID (for example,
com.yourcompany.yourproject).

(Optional) Enter other app information as prompted by the setup workflow.

App nickname: An internal, convenience identifier that is only
visible to you in the Firebase console

To your Podfile, add the Firebase pods that you want to use in your app.

Analytics enabled

# Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Add the pods for any other Firebase products you want to use in your app
# For example, to use Firebase Authentication and Cloud Firestore
pod 'Firebase/Auth'
pod 'Firebase/Firestore'

Analytics not enabled

# Add the pods for the Firebase products you want to use in your app
# For example, to use Firebase Authentication and Cloud Firestore
pod 'Firebase/Auth'
pod 'Firebase/Firestore'

Install the pods, then open your .xcworkspace file to see the project in
Xcode:

pod install

open your-project.xcworkspace

Step 5: Initialize Firebase in your app

The final step is to add initialization code to your application. You may have
already done this as part of adding Firebase to your app. If you're using a
quickstart sample project, this has been done for you.

Swift

Objective-C

After you add the initialization code, run your app to send verification to the
Firebase console that you've successfully installed Firebase.

Available pods

The following pods are available for the various Firebase products.

You no longer need to add the iOS pod
Firebase/Core. This SDK included the Firebase SDK
for Google Analytics. Now, to use Analytics (or any of the Firebase
products that require or recommend the use of Analytics), you need to
explicitly add the Analytics pod: Firebase/Analytics.