먼저 나는 android 먼저 깔았다.
그 다음 flutter 깔았는데,,,
1. flutter.dev 에서 mac sdk 깔았음
2. dev 폴더 만들어서 압축 풀어서 넣었음
3. vs code를 이용하는 방법이 있지만 그냥 터미널에서 해보겠음
- 터미널가서
cd ~
vi ./.zshrc
한 다음에 i 누르고
#flutter
export PATH=$PATH:~/dev/flutter/bin
넣어줌 (나는 ~/dev/ 여기에 압축 푼 flutter 넣었음)
esc 누름 -> :wq! 입력 -> 엔터
4.
source ~/.zshrc
업뎃 해주고
5.
flutter
flutter --version
flutter doctor
한번씩 실행해보고
doctor에서 X표시나면
6-1. Android toolchain - cmdline-tools componet is missing
Android 실행 ->
톱니바퀴 아이콘(오른쪽에서 두번째) -> SDK manager ->
여렇게 들어가서 사진에 보이는 3번째 (Android SDK Command-line Tools 설치
6-2. 터미널에 입력
flutter doctor --android-licenses
7.
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS
and macOS 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.
xcode를 설치해야한다네?
난 mac os 가 처음이라서 아무것도 몰랐움 ㅋ
xcode 설치해보자잉 사이트에서 하는게 빠르다던데 못 찾아서...
app store에서 함 해봐야겠당
꽤나 빨리 설치됨!
바로 위의 명령어 실행
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
You have not agreed to the Xcode license agreements, please run 'sudo xcodebuild -license' from within a Terminal window to review
and agree to the Xcode license agreements.
아 진짜 계속 하란대로 sudo xcodebuild -license 했는데 안되는겨
걍 app실행하니깐 똑같이 agree할거냐고 떠서 agree했움
8.
Building flutter tool...
Resolving dependencies... (3.0s)
Got dependencies.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.4 22F2063 darwin-arm64, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 14.3.1)
✗ 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 2022.3)
[✓] VS Code (version 1.80.2)
[✓] Connected device (2 available)
[✓] Network resources
아오 하란대로 사이트 들어가서 봄
https://guides.cocoapods.org/using/getting-started.html#installation
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.
나한테 왜이래
brew도 설치 안 되어있네..?
여기 보고 설치함
https://jojoldu.tistory.com/288
천천히 해보자 위에꺼 해봄 잘 됨
sudo gem install cocoapods
9.
안드로이드 앱 들어가서
플러그인 설치 - flutter, Dart
했는데 또 나옴...
dart 설치
brew tap dart-lang/dart
brew install dart
리스타트 함
안드로이드 캐시 지우고 다시 여니깐 됨