Programmer:)
[Jenkins] Fastlane 설치 및 초기 셋팅 (ios 배포자동화 fastlane ) 본문
반응형
설치
brew install fastlane
실행 (초기셋팅)
cd [.xacharive가 있는 폴더 경로] 프로젝트가 있는 경로로 이동한 뒤 fastlane init 실행
[11:28:14]: 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
? 2
해당하는 번호 입력 (난 TestFilgtht에 올릴예정)
[11:28:30]: --------------------------------
[11:28:30]: --- Login with your Apple ID ---
[11:28:30]: --------------------------------
[11:28:30]: To use App Store Connect and Apple Developer Portal features as part of fastlane,
[11:28:30]: we will ask you for your Apple ID username and password
[11:28:30]: This is necessary for certain fastlane features, for example:
[11:28:30]:
[11:28:30]: - Create and manage your provisioning profiles on the Developer Portal
[11:28:30]: - Upload and manage TestFlight and App Store builds on App Store Connect
[11:28:30]: - Manage your App Store Connect app metadata and screenshots
[11:28:30]:
[11:28:30]: Your Apple ID credentials will only be stored in your Keychain, on your local machine
[11:28:30]: For more information, check out
[11:28:30]: https://github.com/fastlane/fastlane/tree/master/credentials_manager
[11:28:30]:
[11:28:30]: Please enter your Apple ID developer credentials
[11:28:30]: Apple ID Username:
Apple ID 입력후 비밀번호도 입력
[11:30:08]: --- ✅ Successfully generated fastlane configuration ---
[11:30:08]: --------------------------------------------------------
[11:30:08]: Generated Fastfile at path `./fastlane/Fastfile`
[11:30:08]: Generated Appfile at path `./fastlane/Appfile`
[11:30:08]: Gemfile and Gemfile.lock at path `Gemfile`
[11:30:08]: Please check the newly generated configuration files into git along with your project
[11:30:08]: This way everyone in your team can benefit from your fastlane setup
[11:30:08]: Continue by pressing Enter ⏎
[11:30:13]: fastlane will collect the number of errors for each action to detect integration issues
[11:30:13]: No sensitive/private information will be uploaded, more information: https://docs.fastlane.tools/#metrics
[11:30:13]: ----------------------
[11:30:13]: --- fastlane lanes ---
[11:30:13]: ----------------------
[11:30:13]: fastlane uses a `Fastfile` to store the automation configuration
[11:30:13]: Within that, you'll see different lanes.
[11:30:13]: Each is there to automate a different task, like screenshots, code signing, or pushing new releases
[11:30:13]: Continue by pressing Enter ⏎
[11:30:15]: --------------------------------------
[11:30:15]: --- How to customize your Fastfile ---
[11:30:15]: --------------------------------------
[11:30:15]: Use a text editor of your choice to open the newly created Fastfile and take a look
[11:30:15]: You can now edit the available lanes and actions to customize the setup to fit your needs
[11:30:15]: To get a list of all the available actions, open https://docs.fastlane.tools/actions
[11:30:15]: Continue by pressing Enter ⏎
[11:30:17]: ------------------------------
[11:30:17]: --- Where to go from here? ---
[11:30:17]: ------------------------------
[11:30:17]: 📸 Learn more about how to automatically generate localized App Store screenshots:
[11:30:17]: https://docs.fastlane.tools/getting-started/ios/screenshots/
[11:30:17]: 👩✈️ Learn more about distribution to beta testing services:
[11:30:17]: https://docs.fastlane.tools/getting-started/ios/beta-deployment/
[11:30:17]: 🚀 Learn more about how to automate the App Store release process:
[11:30:17]: https://docs.fastlane.tools/getting-started/ios/appstore-deployment/
[11:30:17]: 👩⚕️ Learn more about how to setup code signing with fastlane
[11:30:17]: https://docs.fastlane.tools/codesigning/getting-started/
[11:30:17]:
[11:30:17]: To try your new fastlane setup, just enter and run
[11:30:17]: $ fastlane beta
엔터엔터를 눌러주다보면 fastlane 폴더가 생성되는 것을 확인 할 수 있다.
lane : beta do
...
이부분은 커스텀해서 실행해주면 된다.
예를 들면
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do //beta 수정가능
increment_build_number(xcodeproj: "Unity-iPhone.xcodeproj")
update_project_team(
path: "Unity-iPhone.xcodeproj",
teamid: "team_id" //알맞게 넣음된다.
)
build_app(
scheme: "Unity-iPhone",
xcargs: '-UseNewBuildSystem=YES'
)
upload_to_testflight
Version = get_version_number
end
end
실행
fastlane beta
여기서 beta는 lane :beta do의 beta 임으로 다른걸로 수정해도 상관없다.
반응형
'DEV > Jenkins' 카테고리의 다른 글
[Jenkins] Google Play Store Upload - PipeLine (2024.07.16 업데이트) (0) | 2022.05.24 |
---|---|
[Jenkins] Fastlane - PipeLine (UTF-8 error ) (0) | 2022.05.24 |
[Jenkins]Mac 에서 설치 방법 (2024.02.16 수정) (0) | 2022.05.20 |
[Jenkins] localhost 변경 방법 (for mac)(2024.02.16 수정) (0) | 2022.05.20 |
[Jenkins]Email Notification (부들부들 starttls.... ) (0) | 2022.05.13 |
Comments