brew 나 ruby로 fastlane을 설치할 수 있는데 bundler를 가장 추천한다고 함.
이유는 버전과 종속성을 명확하게 정의 할 수 있고 fastlane 실행 속도도 올려준다고 함. → This will clearly define the fastlane version to be used and its dependencies, and will also speed up fastlane execution.
gem install bundler
설치 후 루트/Gemfile 내에 아래 내용 포함해서 설정
source "[<https://rubygems.org>](<https://rubygems.org/>)"
gem "fastlane"
bundle update
를 통해 fastlane 설치
gem install bundler -v 2.4.22
bundler requires Ruby version >= 3.1.0. The current ruby version is 2.6.10.210.플랫폼 설정 - ios
이름 - 앱 이름 (중복 안 됨) App Store에 앱을 출시한 후 앱 제품 페이지에서 볼 수 있으며, 사용자가 앱을 설치할 때 표시됩니다.
기본 언어 설정
번들 ID 설정
ID 없으면 링크 클릭 후 인증 페이지에서 app ID 등록 및 사용할 기능 설정 (예- push notification)
SKU - 사용자에게 표시되지 않는 앱의 고유한 ID
액세스 권한 설정
루트 폴더에서 fastlane init
입력 아래처럼 묻는 메시지가 나옴
(base) ParkGyurim@ParkGyurim-MacBook-Pro [프로젝트이름] % fastlane init
[✔] 🚀
[✔] Looking for iOS and Android projects in current directory...
[10:07:25]: Created new folder './fastlane'.
[10:07:25]: Detected an iOS/macOS project in the current directory: '[프로젝트이름].xcworkspace'
[10:07:25]: -----------------------------
[10:07:25]: --- Welcome to fastlane 🚀 ---
[10:07:25]: -----------------------------
[10:07:25]: fastlane can help you with all kinds of automation for your mobile app
[10:07:25]: We recommend automating one task first, and then gradually automating more over time
[10:07:25]: What would you like to use fastlane for?
1. 📸 Automate screenshots
2. 👩✈️ Automate beta distribution to TestFlight
3. 🚀 Automate App Store distribution
4. 🛠 Manual setup - manually setup your project to automate your tasks
?
testFlight인 2번 엔터 후 메일 계정 입력하면 ios/fastlane 폴더 내에 Appfile과 Fastfile 생성