# Flutter Setup for the macOS system

First, download the Flutter here: <https://flutter.dev/docs/get-started/install/macos>

{% hint style="info" %}
Please note that this manual and all the steps described are applicable to the macOS building process.
{% endhint %}

**You can watch the video tutorial describing the full process of Android app building on macOS.**

Or you can follow the instructions and steps described in this manual.

When you created the folder with Flutter SDK, open it in Terminal using the following command:

```
cd ~/development
```

If there is no development folder run this command first:

```
mkdir /development
```

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2FPn6OA6GUKke93DWo8zcy%2Fios1.png?alt=media&#x26;token=80630b8f-9260-4565-a6eb-bec7ecc3fa8a" alt=""><figcaption></figcaption></figure>

After that, you need to run the **unzip** command. Make sure you specify the correct path to the downloaded Flutter archive file.

Run the command below:

```
unzip ~/Downloads/flutter_macos_3.3.8-stable.zip
```

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2FUtmpTlKqhYBygMOz7RWF%2Fios2.png?alt=media&#x26;token=5d852aa6-c26e-4341-9bc0-3458ad0e8ff8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2FeLZN8WyKSrmtwnMRPvPV%2Fios3.png?alt=media&#x26;token=32cd5735-b5a8-4881-bd63-05b3ca494dab" alt=""><figcaption></figcaption></figure>

## **Setting the Flutter tool path**

In order to set up the Flutter tool path you should run this command:

```
export PATH="$PATH:pwd/flutter/bin"
```

Next, you need to know which shell you are using. For this run this command:

```
echo $SHELL
```

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2Fe2qe6v8L8zTAjnlN2UhE%2Fios4.png?alt=media&#x26;token=71e17e38-51f9-4acf-adab-a2930478eff8" alt=""><figcaption></figcaption></figure>

Depending on the shell run the following command:

```
sudo nano ~/.zshrc
```

or

```
sudo nano /.bashrc
```

Again, the command you will be using depends on the shell you have.

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2FKNtuTU4y98YnFy16ImRz%2Fios5.png?alt=media&#x26;token=0365f8ac-a36a-4c1c-addb-c4b53789009a" alt=""><figcaption></figcaption></figure>

After that in the new window, you need to add a path to the flutter tool.

&#x20;Use the following command:

```
export PATH=$PATH:~/development/flutter/bin
```

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2FNiQFi8Y1RIabpkHour73%2Fios6.png?alt=media&#x26;token=27079dcf-1044-47a8-bdec-731aedc5a036" alt=""><figcaption></figcaption></figure>

The next thing you need to do is to check the **Flutter dependencies**.

For this, run the command:

```
flutter doctor
```

This operation will help you to identify if there are any dependencies you need to install. After the results will be prepared click **Agree** and wait for the installation of the needed dependencies to complete the setup.

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2FZSUCGLPFoslgavcH7TyE%2Fios7.png?alt=media&#x26;token=2bf8c8c3-a278-4f92-b846-bbe514c03046" alt=""><figcaption></figcaption></figure>

The Flutter Doctor results will be displayed as follows:

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2FyS2mqrHVvbfXm21bwfOi%2Fios8.png?alt=media&#x26;token=10c82a7f-3ade-45a1-9a52-26a0a88aa490" alt=""><figcaption></figcaption></figure>

Accept Android licenses. For this, run this command:

```
flutter doctor --android-licenses
```

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2F5S3pPDjK0rQy5MW28L7m%2Fios10.png?alt=media&#x26;token=035f6587-99d9-4882-a727-809a38581931" alt=""><figcaption></figcaption></figure>

To accept the licenses just type ***“y”***

<figure><img src="https://649870283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXy_4le1iZ83O009c%2Fuploads%2F9rMR6DKSyOd8v9xqq8Nq%2Fios12.png?alt=media&#x26;token=33e49341-933d-433a-8f5d-8daf6f8a1fc0" alt=""><figcaption></figcaption></figure>

After you finished all the steps, the installation of Flutter SDK is complete. You can follow to the next step of building the app.
