Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[문의] 빌드하는데 문제가 발생하나요? #9

Open
ottuck opened this issue Jul 24, 2024 · 0 comments
Open

[문의] 빌드하는데 문제가 발생하나요? #9

ottuck opened this issue Jul 24, 2024 · 0 comments
Labels
question Further information is requested

Comments

@ottuck
Copy link
Contributor

ottuck commented Jul 24, 2024

추가 정보

README 페이지를 보고 따라했는데 잘 안되시나요?
아래 방법을 참고하여 다시 한번 시도해 보세요.

작업 환경 구성

  1. 기본적인 flutter 개발 환경 셋팅이 되어 있어야 합니다.
    flutter doctor 커맨드 입력시 모든 항목에 체크가 된다면 다음으로 환경 셋팅 완료입니다.

  2. 프로젝트 레포지토리를 클론 후 안드로이드 스튜디오에서 프로젝트 폴더를 열어주세요.

  3. flutter create . 프로젝트 터미널에서 명령어 실행
    -> 해당 커맨드 입력시 생성되는 android/app 경로에 google-services.json 파일을 넣어 주고, ios/Runner 경로에는 GoogleService-Info.plist 파일을 넣어 줍니다.

google service 파일을 다운 받는 위치
https://console.firebase.google.com/
a. 파이어베이스 콘솔에서 blueberryTemplate-2024-Summer 프로젝트 선택
b. 좌측상단의 '프로젝트 개요' 옆 톱니바퀴 아이콘 클릭 -> '프로젝트 설정'
c. 프로젝트 설정 내 '일반' 탭에서 아래로 스크롤 후 '내 앱' 에서 패키지 이름(android)과 번들ID(ios)과 아래와 같은 파일을 찾습니다.
Android 패키지이름 : com.blueberry.template
IOS 번들ID : com.example.blueberryTemplate
d. 해당 앱 클릭 후 SDK안내 보기 옆 google service 이름의 파일을 android, ios 각각 다운로드 한 후 프로젝트 내 각각의 경로에 위치시켜 줍니다. (작업환경구성 2 참고)

  1. flutter pub get (종속성 라이브러리 설치)
  2. flutter pub run build_runner build --delete-conflicting-outputs (코드 제너레이터에 의한 필요한 파일 생성 1)
  3. fluttergen (코드 제너레이터에 의한 필요한 파일 생성2)
    -> 안 될 경우 fluttergen 을 설치 커맨드 : dart pub global activate flutter_gen
  4. flutterfire configure --project=blueberrytemplate-2024-summer (파이어베이스 프로젝트에 연결, firebase_options.dart 에러를 해결합니다)
    -> 안 될 경우 flutterfire 설치 커맨드: dart pub global activate flutterfire_cli
  5. 에뮬레이터 실행 후 flutter run (프로젝트 빌드 및 디버그 모드로 실행)

발생 할 수 있는 에러

firebase 버전업 후 최소 sdk 버전과 최소 ios 버전을 높여달라는 에러가 나올 수 있습니다.

  1. android/build.gradle 파일 내 minSDK = 23 으로 설정
  2. ios/Podfile 파일 내 ios = 13 으로 설정
@ottuck ottuck added bug Something isn't working question Further information is requested labels Jul 24, 2024
@ottuck ottuck removed the bug Something isn't working label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant