fastlane match를 통한 팀원과 인증서 공유

minan
3 min readMay 14, 2022

--

순서

  1. fastlane match
  2. 로컬에서 배포 자동화
  3. Github Action을 통한 배포 자동화
  4. Github Action과 Self Hosted를 통한 배포 자동화

fastlane match?

Easily sync your certificates and profiles across your team

A new approach to iOS and macOS code signing: Share one code signing identity across your development team to simplify your codesigning setup and prevent code signing issues.

fastlane이 적용된 프로젝트 폴더로 가 fastlane match init 실행

fastlane match init

인증서를 git에 저장할거니 1번 선택

다음 인증서를 저장할 git repo의 주소 입력

fastlane 폴더에 Matchfile이 생성되었다.

fastlane match developmentfastlane match appstore
암호화 시킬 문자열, 팀원에게 공유
위 두 명령어 작업이 끝나고 난 후 레포

Fastfile 수정

프로젝트의 Target 설정-> Signing & Capabilities -> Automatically manage signing 체크 해제 -> Provisioning Profile을 match Development ***으로 변경

https://appleid.apple.com/ -> 앱 암호 생성 후 값을 넣어준다.

성공 ㅋ

다른 팀원은 이용할 때 아래 명령어 실행 후 사용

fastlane match development --readonly
fastlane match appstore --readonly

바로 다음 편에서 match와 Github Action으로 배포를 자동화해보자

--

--