반응형
2.0 Installation
SDK 설치
Homebrew 설치
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
flutter 설치
brew install --cask flutter
[Flutter 설치 오류] Error: It seems there is already a Binary at '/opt/homebrew/bin/dart'
brew remove dart brew install --cask flutter
Simulator 설치
Xcode 설치
- iOS용 Flutter 앱을 개발하려면 Xcode가 설치된 Mac이 필요합니다.
Xcode의 최신 안정 버전을 설치합니다( 웹 다운로드 또는 Mac App Store 사용 ).
설치된 버전을 사용하도록 Xcode 명령줄 도구를 구성하려면 다음 명령을 실행합니다.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch
최신 버전의 Xcode를 사용하려면 이 경로를 사용하세요. 다른 버전을 사용해야 하는 경우 대신 해당 경로를 지정하십시오.
Xcode 라이센스 계약에 서명합니다. SLA에 서명하려면 다음 중 하나를 수행하세요.
Xcode를 열고 확인하세요.
터미널을 열고 다음을 실행하세요.
sudo xcodebuild -license
iOS 시뮬레이터 설정
iOS 시뮬레이터에서 Flutter 앱을 실행하고 테스트할 준비를 하려면 다음 절차를 따르세요.Xcode 15 이상을 사용하는 경우 다음 명령을 실행하여 iOS 시뮬레이터를 다운로드하고 설치하십시오.
xcodebuild -downloadPlatform iOS
iOS 시뮬레이터를 다운로드하고 설치하는 다른 방법을 사용하려면 시뮬레이터 설치에 대한 Apple 설명서에서 추가 옵션을 확인하세요.
시뮬레이터를 시작하려면 다음 명령을 실행하십시오.
open -a Simulator
doctor를 통해 현재 flutter 상황을 볼 수 있다. (어떤 환경이 설치되어있는지)
```jsx flutter doctor ```
반응형
'Flutter' 카테고리의 다른 글
Flutter의 엔진, Flutter vs React Native (0) | 2023.11.22 |
---|---|
[Flutter] Exception caught by image resource service : HTTP request failed, statusCode: 403 (0) | 2023.11.10 |
댓글