Introduction of installing a flutter on macOS
To install and run Flutter, your development environment must meet these minimum requirements:
- Operating Systems: macOS, version 10.14 (Mojave) or later.
- Disk Space: 2.8 GB (does not include disk space for IDE/tools).
- Tools: Flutter uses
git
for installation and upgrade. We recommend installing (https://developer.apple.com/xcode/), which includesgit
, but you can also(https://git-scm.com/download/mac). - you install on an Apple Silicon Mac, you should have the Rosetta translation environment available for some dependencies. You can install this manually by running:
- sudo softwareupdate –install-rosetta –agree-to-license
- 1-download the Flutter SDK
For downloading the following installation bundle to get the latest stable release of the Flutter SDK: -
Intel Apple Silicon (failed) (loading…) Tip: To understand, if your Mac uses an Apple silicon processor, refer to Mac computers with Apple silicon on apple.com
- Extract the file, where you would like locate on your HDD, for example:
- cd ~/development
unzip ~/Downloads/flutter_macos_vX.X.X-stable.zip - Append the
flutter
tool to your path: - export PATH=”$PATH:`pwd`/flutter/bin”
- This command examine your environment and show a report to the terminal window. The Dart SDK is packed up with Flutter; it is not necessary to install Dart separately. Check the output strictly for other software you might need to install or further tasks to carry out (shown in bold text).
- For example:
- [-] Android toolchain – develop for Android devices
• Android SDK at /Users/obiwan/Library/Android/sdk
✗ Android SDK is missing command line tools; download from https://goo.gl/XxQghQ
• Try re-installing or updating your Android SDK,
visit https://docs.flutter.dev/setup/#android-setup for detailed instructions. - When you have installed any missing dependencies, run the “flutter doctor” command in your terminal again to understand if you’ve set everything up correctly or not?