일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- 사무자동화
- Text-to-Speech
- Google API
- YOLOv7
- YOLOv5
- pypdf2
- pythonnet
- Text To Speech
- 파이썬 #업무자동화 #python
- ironpython
- DeepLearning
- objectdetection
- yolo
- processstart
- pyautogui
- pdf merge
- 사무자동화 #Selenium
- google cloud
- computervision
- 업무자동화
- Today
- Total
Doarchive
Install Flutter on Mac (brew) 본문
Mac 에 Flutter 설치하기
1. brew 사용해서 flutter 설치하기
% brew install --cask flutter
2. Flutter 를 사용할수 있는 환경인지 확인하기
% flutter doctor
3. 에러 확인하기
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4 22F66 darwin-arm64, locale
ko-KR)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
✗ cmdline-tools component is missing
✗ Android license status unknown.
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
✗ CocoaPods not installed.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.79.2)
[✓] Connected device (2 available)
[✓] Network resources
Error 1
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
✗ cmdline-tools component is missing
✗ Android license status unknown.
Error 1-1
✗ cmdline-tools component is missing
Error 1-2
✗ Android license status unknown.
아래 커멘드 사용
flutter doctor --android-licenses
Erro2
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
✗ CocoaPods not installed.
Erro2-1
✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
-> 아래 커멘드 사용
sudo xcodebuild -runFirstLaunch은 Xcode의 첫 실행 설정을 수행하는 명령어
runFirstLaunch 플래그는 Xcode를 처음 실행할 때 나타나는 초기 설정을 실행하는 옵션
% sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
% sudo xcodebuild -runFirstLaunch
Erro2-2
✗ CocoaPods not installed.
cocoapods 설치하기
% sudo gem install cocoapods
추가 발생 에러 ERROR: Error installing cocoapods:
The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.4. Try installing it with `gem install activesupport -v 6.1.7.4` and then running the current command again
activesupport requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.
doado@MacBook-Pro ~ % sudo gem install cocoapods
ERROR: Error installing cocoapods:
The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.4. Try installing it with `gem install activesupport -v 6.1.7.4` and then running the current command again
activesupport requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.
아래 커멘드 실행 후
% sudo gem install activesupport -v 6.1.7.4
다시 cocoapods 설치하기
% sudo gem install cocoapods
Flutter 설치완료!