본문 바로가기

Develop/Flutter

Install Flutter in MacOS

Download The Flutter SDK

Flutter SDK LINK

Unzip The Flutter SDK

$ unzip [path-to-flutter-sdk]/[flutter-sdk-filename].zip

Add PATH of flutter

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

# OR Add IN .bashrc
export PATH="$PATH:[path-to-extracted-flutter-sdk]/flutter/bin"

Check the dependencies

# Check the output for install or further tasks
$ flutter doctor
# Result
[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.13.6 17G7024, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 9.2)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.36.1)
[!] Connected device
    ! No devices available

Install XCode and Setup iOS simulator

$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
$ open -a Simulator

Create Flutter App

$ flutter create [APP_NAME]
$ cd [APP_NAME] && flutter run