- Fastlane - CI를 해보자2023년 08월 09일
- 2료일
- 작성자
- 2023.08.09.:18
What is Fastlane?
배포를 자동화하기 위한 오픈소스 라이브러리
brew install fastlane fastline init //프로젝트 있는곳에서 해야함
Appfile : 앱의 번들 ID, app ID, team ID 정보가 담겨있음.
Fastfile : 배포와 관련된 자동화 명령어들이 담겨있음.
Gemfile : gem 목록
Gemfil.lock : 의존성 버전 관리를 위한 정보가 담겨있음.
fastlane의 명령어는 fastfile에서 ruby언어를 사용하여 세팅.
앱 배포와 개발을 위한 certificate(개발자가 Apple) & provisioning profile(디바이스가 앱을 신뢰할수 있는지)을 등록하는데 두가지방법으로 도와준다.
1. match : 개인키와 인증서를 git 레포에 저장해 개발자의 기기동기화 가능하게 한다. (기존 certificate 취소해야함)
2.cert and sigh : 기존 certificate 취소하고 싶지않다면 이방법. cert: 유효한 certificate와 private_key가 로컬에 설치되어잇는지확인
sigh: 설치된 certificate와 일치하는 provisioning profile 로컬에 설치되어있는지 확인
get_certificates get_provisioning_profile를 lane에 넣어주면 된다.
match를 함 사용해보자
// ssh 생성 $ ssh-keygen -t rsa -b 4096 -C "youtEmail@example.com" // ssh 복사 $ pbcopy < ~/.ssh/id_rsa.pub
ssh를 생성하고 복사해서 git key에 등록을 해놓자.
fastlane_version '2.157' default_platform :ios platform :ios do platform :ios do desc 'Builds project and executes unit tests' lane :unit_test do |options| scan( clean: options[:clean], skip_package_dependencies_resolution: options[:skip_package_dependencies_resolution] ) end end end
lane: 현재는 lane명을 내가 unit_test로 지었음. fastlane unit_test하면 동작
'SWIFT개발' 카테고리의 다른 글
View Modifier (0) 2023.12.14 ConfirmationDialog (0) 2023.09.15 MVVM,MVC pattern 좋나요 - swiftui (0) 2023.05.04 Spritekit with swiftui(1) (0) 2023.05.01 CoreMotion - Swift (0) 2023.04.29 다음글이전글이전 글이 없습니다.댓글
스킨 업데이트 안내
현재 이용하고 계신 스킨의 버전보다 더 높은 최신 버전이 감지 되었습니다. 최신버전 스킨 파일을 다운로드 받을 수 있는 페이지로 이동하시겠습니까?
("아니오" 를 선택할 시 30일 동안 최신 버전이 감지되어도 모달 창이 표시되지 않습니다.)