Flutter Setup for the macOS system

Flutter Installation

First, download the Flutter here: https://flutter.dev/docs/get-started/install/macos
Please note that this manual and all the steps described are applicable to the iOS app building process.
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:
1
cd ~/development
Copied!
If there is no development folder run this command first:
1
mkdir /development
Copied!
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:
1
unzip ~/Downloads/flutter_macos_1.17.1-stable.zip
Copied!

Setting the Flutter tool path

In order to set up the Flutter tool path you should run this command:
1
export PATH="$PATH:pwd/flutter/bin"
Copied!
Next, you need to know which shell you are using. For this run this command:
1
echo $SHELL
Copied!
Depending on the shell run the following command:
1
sudo nano ~/.zshrc
Copied!
or
1
sudo nano /.bashrc
Copied!
Again, the command you will be using depends on the shell you have.
After that in the new window, you need to add a path to the flutter tool.
Use the following command:
1
export PATH=$PATH:~/development/flutter/bin
Copied!
The next thing you need to do is to check the Flutter dependencies.
For this, run the command:
1
flutter doctor
Copied!
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.
The Flutter Doctor results will be displayed as follows:
Accept Android licenses. For this, run this command:
1
flutter doctor --android-licenses
Copied!
To accept the licenses just type “y”
After you finished all the steps, the installation of Flutter SDK is complete. You can follow to the next step of building the app.
Last modified 1yr ago