iOS fastlan, jenkins 구축 완료 후, 내부 개발자 버전 배포는 드랍박스+슬랙으로 진행 했다.
이제 베타 배포는
Firebase Distribution 을 사용해서 진행 해보자.
문서: firebase.google.com/docs/app-distribution/ios/distribute-fastlane?hl=ko
아래 명령어를 통해 Firebase Distribution 설정을 진행할 수 있다.
$ fastlane add_plugin firebase_app_distribution
02. Firebase CLI를 통한 배포
Firebase CLI 를 통한 배포는 PC에 Firebase Tool 이 설치되어 있어야합니다.
아래와 같은 명령어를 통해 설치합니다.
curl -sL firebase.tools | bash설치한 이후 터미널에 firebase 명령을 입력하여 명령어가 수행이 되는지 확인합니다.
명령어가 수행이 된다면 정상적으로 설치 된 것입니다.
이후 로그인을 수행합니다.
$ firebase login:ci위 명령어를 수행하게 되면 firebase 로그인 과정을 거칩니다.
💡 FIREBASE\_APP\_TOKEN 값은 cli 설치이후 로그인을 진행하시면 발급받을 수 있습니다.로그인 한 이후 다시 명령어를 입력해보시면 현재 로그인되어있는 계정의 정보가 출력됩니다.
$ firebase projects:list해당 프로젝트에서 add on 해준다.
이제 fastlane에서 Firebase Distribution 사용 방법을 구축하고
안드로이드
# 파이어베이스 배포
def hk_firebase_app_distribution
firebase_app_distribution(
app: ENV['FIREBASE_APP_ID'],
firebase_cli_token: ENV['FIREBASE_APP_TOKEN'],
groups: "xx-tester",
debug: true
)
end
아이폰
# 파이어베이스 배포
def hk_firebase_app_distribution
firebase_app_distribution(
app: ENV['FIREBASE_APP_ID'],
firebase_cli_token: ENV['FIREBASE_APP_TOKEN'],
groups: "xx-tester",
ipa_path: "./build/앱이름.ipa"
)
end
초대 링크를 통해 가입후,
이메일 링크를 통해 설치 가능하다.
사파리에서만 작동하며, 프로파일 설치 후 가능 하다.
끗

댓글
댓글 쓰기