# 4.5 Additional Firebase Setup for iOS

Now, you have to connect the firebase with your code project. Follow the steps below:

* Run the following command from your IDE terminal:

```
firebase login
```

{% hint style="info" %}
After this command, you will get a link prompt to log in with the email account that you have used on firebase. Login with that by allowing the required criteria.
{% endhint %}

* Run the following command from your IDE terminal:

```
dart pub global activate flutterfire_cli
```

{% hint style="info" %}
After this command, if you get an error like the picture below, then just copy that line and run that.

<img src="https://content.gitbook.com/content/yaJJT5ZOPh9eibDKGSOc/blobs/AP4VyMrRxqD57jKZuGio/Screenshot%202022-12-17%20at%201.10.51%20PM.png" alt="" data-size="original">
{% endhint %}

* Run the following command from your IDE terminal:

```
flutterfire configure
```

* Select Your App and Press Enter.

<div align="left"><figure><img src="https://content.gitbook.com/content/yaJJT5ZOPh9eibDKGSOc/blobs/ZT10O4dYc5tAVaKLTf2t/Screenshot%202022-12-18%20at%201.23.03%20PM.png" alt=""><figcaption></figcaption></figure></div>

* Select iOS and press Enter.

<figure><img src="https://content.gitbook.com/content/yaJJT5ZOPh9eibDKGSOc/blobs/yP62z3AeQEAZSNriOcUl/Screenshot%202022-12-18%20at%201.26.59%20PM.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Use arrow keys & space to select/unselect
{% endhint %}

After this command, Your iOS app information from firebase will be added in the **lib/firebase\_options.dart** file. If you found them, your firebase configuration is successful.
