System Requirements for macOS

To install and run Flutter on macOS system, you need first to meet these requirements for your development environment.

Operating SystemmacOS (64-bit)
Disk Space2.8 GB (It does not include disk space for IDE/tools).
Toolsbash
curl
git 2.x
mkdir
rm
unzip
which
IDEXcode (Official)

Get the Flutter SDK

Step 1: Download the installation bundle of the Flutter Software Development Kit for macOS. To download Flutter SDK, Go to its official website.

Step 2: When your download is complete, extract the zip file and place it in the desired installation folder or location.

Step 3: To run the Flutter command, you need to update the system path to include the flutter bin directory.

  1. $ export PATH=”$PATH:`pwd`/flutter/bin”  

Step 4: Next, enable the updated path in the current terminal window using the below command and then verify it also.

  1. source ~/.bashrc  
  2. source $HOME/.bash_profile  
  3. echo $PATH  

Step 5: Now, run the $ flutter doctor command. This command checks for all the requirements of Flutter app development and displays a report of the status of your Flutter installation.

  1. $ flutter doctor  

Step 6: When you run the above command, it will analyze the system and the details of all missing tools, which required to run Flutter as well as the development tools that are available but not connected with the device.

Step 7: Install the latest Xcode tools if reported by the Flutter doctor tool.

Step 8: Install the latest Android Studio and SDK, if reported by the Flutter doctor tool.

Step 9: Next, you need to set up an iOS simulator or connect an iPhone device to the system for developing an iOS application.

Step 10: Again, set up an android emulator or connect an android device to the system for developing an android application.

Step 11: Now, install Flutter and Dart plugin for building Flutter application in Android Studio. These plugins provide a template to create a Flutter application, give an option to run and debug Flutter application in the Android Studio itself.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *