맥에 플러터 설치하기
1. SDK 설치
Homebrew 설치
iterm 터미널로 코드 복사
brew install --cask flutter
2. 시뮬레이터 설정
Android | iOS 각각 시뮬레이터 설치 및 설정 필수
iOS 시뮬레이터
Xcode 설치 후 공식문서를 보면
command를 입력하면
첫번째는 비밀번호 입력
두번째는 agree 설정해주면 Xcode 설정은 완료!
다음으로는 iOS 시뮬레이터를 설치하는 것인데
xcodebuild -downloadPlatform iOS
m2 pro 기준 30분 이상 소요
설치 완료 후 flutter doctor로 검사하면 설치된 항목이나 X표시 된 것들이 나온다.
한번에 설치하긴 어려우니 doctor로 검사하기!
CocoaPods는 brew에서 아래 코드로 설치한다.
brew install cocoapods
CocoaPods를 설치 후 다시 doctor를 실행하면 !에서 초록색 체크박스로 표시된다.
에서 플러터 설치 완료!!!
flutter
Homebrew’s package index
formulae.brew.sh
Start building Flutter iOS apps on macOS
Configure your system to develop Flutter mobile apps on macOS and iOS.
docs.flutter.dev
cocoapods
Homebrew’s package index
formulae.brew.sh
'Programming' 카테고리의 다른 글
Mac에서 Git 설치하기 (0) | 2023.11.25 |
---|