삽질/flutter
Flutter 설치하기 (mac, vscode)
푸딩s
2026. 3. 24. 20:03
다시 시작하려니 설치하는 방법을 까먹어서 정리..
git + 기본 툴 설치
xcode-select --install
Flutter SDK 설치
https://docs.flutter.dev/install/quick
+ 환경변수 설정
# 환경변수 편집
nano ~/.zshrc
# 하단에 추가 (
export PATH="$PATH:$HOME/Documents/flutter/bin"
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
# 환경변수 적용
source ~/.zshrc
VS Code 설치
https://code.visualstudio.com/Download
+ 설치 후, Extensions 메뉴에서 Flutter를 검색하고 Flutter Extension 설치
Android Studio 설치
https://developer.android.com/studio?hl=ko
+ 설치 후, 실행해서 SDK 설정 확인
SDK Manager → SDK Tools
-Android SDK
-Android SDK Platform
-Android SDK Command-line Tools
-Android Emulator
Android 라이센스 동의
flutter doctor --android-licenses
Xcode 설치
https://developer.apple.com/xcode/
+ 설치 후,
sudo xcodebuild -license
Settings → Platforms → iOS simulator 설치
CocoaPods 설치
brew install cocoapods
pod setup
+ Ruby 버전 오류나면 Homebrew 로 최신 Ruby 설치
# Homebrew 없으면 설치
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv zsh)"
# Ruby 설치
brew install ruby
# 환경변수 편집
nano ~/.zshrc
# 하단에 추가
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
# (선택) gem 설치 시 PATH 문제
export PATH="/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATH"
# 환경변수 적용
source ~/.zshrc
Flutter 설치 확인
flutter doctor