Flutter 설치 https://flutter-ko.dev/docs/get-started/install 맥OS에서 설치 참고: https://flutter-ko.dev/docs/get-started/install/macos 1) Flutter SDK 다운로드 https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_1.22.5-stable.zip 주소에서 압축 파일 다운로드 cd "원하는 위치로 이동" unzip ~/Downloads/flutter_macos_1.22.5-stable.zip export PATH="$PATH:`pwd`/flutter/bin" # 임시로 현재 터미널 창에 대해서만 PATH 변수를 설정 2) Flutter doctor 실행 flutter doctor [✓] Flutter (Channel stable, 1.22.5, on macOS 11.0.1 20B29 darwin-x64, locale en-KR) [✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location. You may also want to add it to your PATH environment variable. [✓] Xcode - develop for iOS and macOS (Xcode 12.3) [!] Android Studio (not installed) [!] IntelliJ IDEA Ultimate Edition (version 2020.2.3) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [✓] VS Code (version 1.52.0) # 현재 내가 추가로 설치해야 되는 부분이 안내됨 3) Path 업데이트 export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin" # 위에서 임시로 설정한 경로를 고정으로 설정하는 부분 # 테스트 echo $PATH which flutter 4) xcode 설정 sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch 5) ios 시뮬레이터 설정 open -a Simulator 6) Flutter 앱 만들고 실행 flutter create my_app #원하는 디렉토리에서 설정 cd my_app flutter run 7) ios 기기에 배포 - 추후 진행 예정 sudo gem install cocoapods pod setup # CocoaPods을 설치하고 설정 open ios/Runner.xcworkspace #기본 Xcode 워크스페이스 열기 실행 버튼 옆 기기 선택 메뉴에서 배포하고 싶은 기기를 선택하세요. Xcode 왼쪽 내비게이션 패널에서 Runner 프로젝트를 선택하세요 Signing & Capabilities > Team → 팀을 선택하면, Xcode가 개발 인증서를 생성하고 다운로드한 후, 계정에 기기를 등록하고, 프로비저닝 프로파일을 생성 및 다운로드합니다 (필요할 경우). 처음 iOS 개발 프로젝트를 시작하기 위해, 애플 ID로 Xcode에 로그인해야 할 수도 있습니다. 모든 애플 ID가 개발 및 테스트에 사용 가능합니다. 앱 스토어에 앱을 배포하려면 애플 개발자 프로그램에 등록해야 합니다. iOS 개발을 위해 실제 기기를 처음 연결하면, 맥과 개발 인증서를 모두 신뢰해야 합니다. iOS 기기를 맥에 처음 연결할 때 대화 상자에서 Trust를 선택하세요. 다음으로, iOS 기기의 설정으로 가서, General > Device Management로 이동하여 인증서 신뢰하기를 선택하세요. Xcode에서 자동 서명이 실패한다면, 프로젝트의 General > Identity > Bundle Identifier가 고유한지 확인해보세요. flutter run #앱 실행 8) Android 설정 - 생략
2. Flutter 개발 환경 세팅
개요 - wooogy-egg.tistory.com/4
Flutter 설치
맥OS에서 설치
참고: https://flutter-ko.dev/docs/get-started/install/macos
1) Flutter SDK 다운로드
cd "원하는 위치로 이동" unzip ~/Downloads/flutter_macos_1.22.5-stable.zip export PATH="$PATH:`pwd`/flutter/bin" # 임시로 현재 터미널 창에 대해서만 PATH 변수를 설정
2) Flutter doctor 실행
flutter doctor [✓] Flutter (Channel stable, 1.22.5, on macOS 11.0.1 20B29 darwin-x64, locale en-KR) [✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location. You may also want to add it to your PATH environment variable. [✓] Xcode - develop for iOS and macOS (Xcode 12.3) [!] Android Studio (not installed) [!] IntelliJ IDEA Ultimate Edition (version 2020.2.3) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [✓] VS Code (version 1.52.0) # 현재 내가 추가로 설치해야 되는 부분이 안내됨
3) Path 업데이트
export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin" # 위에서 임시로 설정한 경로를 고정으로 설정하는 부분 # 테스트 echo $PATH which flutter
4) xcode 설정
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch
5) ios 시뮬레이터 설정
open -a Simulator
6) Flutter 앱 만들고 실행
flutter create my_app #원하는 디렉토리에서 설정 cd my_app flutter run
7) ios 기기에 배포 - 추후 진행 예정
sudo gem install cocoapods pod setup # CocoaPods을 설치하고 설정 open ios/Runner.xcworkspace #기본 Xcode 워크스페이스 열기
flutter run #앱 실행
8) Android 설정 - 생략
'기술개발 > Django' 카테고리의 다른 글