git clone https://github.com/flutter/flutter.git -b stable
export PATH="$PATH:`pwd`/flutter/bin"
// 확인
echo $path
// 결과
/Users/gujagwang/.rbenv/shims {}/.rbenv/bin /opt/homebrew/bin
/opt/homebrew/sbin /usr/local/bin /usr/bin /bin
/usr/sbin /sbin
/Users/gujagwang/development/flutter/bin
open ~/.zshrc
export PATH=$PATH:~/development/flutter/bin~/
source ~/.zshrc
// 확인
flutter --version
flutter doctor
[✓] Flutter (Channel stable, 3.3.6, on macOS 12.6 21G115 darwin-arm, locale ko-KR)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart
side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.3)
[✓] VS Code (version 1.61.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
2.조치
$ flutter doctor --android-licenses
6 of 7 SDK package licenses not accepted. 100% Computing updates...
Review licenses that have not been accepted (y/N)? y
// 계속 y 를 입력한다.
// 다 읽고 y를 하면 영어 실력이 향상된다.