Dart/Flutter

[Flutter] m1 mac flutter 초기 환경설정

  • -
728x90

1. homebrew 설치

2. flutter 설치

brew install --cask flutter

cask 옵션은 flutter를 application으로 넣어주기 위함

만약 dart가 설치되어있다면, 삭제하고 flutter로 다시 설치 (dart가 같이 설치된다)

 

3. 필수사항 확인

flutter docter

위 명령어로 flutter를 사용하기위해 필요한 것들을 확인해보자.

 

4. xcode 설치

    1. app store에서 xcode 검색 후 설치

    2. 아래 명령어 입력

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch

    3. cocoapods 설치 - 링크

brew install cocoapods

5. android studio 설치 - 링크

  링크 대신 brew 설치

brew install --cask android-studio

android-studio 실행 후 설치

현재까지 확인

아직 android toolchain과 xcode 설치가 완료되지 않았다.

toolchain 에러 해결을 위해서 아래처럼하면 해결된다.

SDK Tools 탭에서 아래를 모두 체크하고 설치

flutter doctor --android-licenses

터미널에 위 명령어 입력

 

xcode 설정에서 simulator runtimes 에러

xcodebuild -downloadPlatform iOS

위 명령어를 입력하여 에러를 해결해주자.

설치 완료!

728x90
300x250
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.