fastlane을 사용해 보도록 하겠습니다.
패스트라인은 무엇입니까?
참조 소스: https://fastlane.tools/
주요 동작
참조 소스: https://fastlane.tools/
먼저 설치
1. 최신 Xcode command line tools
xcode-select --install
2. fastlane 설치
sudo gem install fastlane --verbose
3. fastlane을 사용하는 프로그램의 디렉터리로 이동하여 다음 명령을 실행합니다
fastlane init
-bash:fastlane:command not found가 나타나면 아래 내용을 참조하십시오
참조 소스: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md#update_fastlane
설정
1. ./fastlane 폴더 만들기
[apple@sutou graho]$[dev *]$ fastlane init
[03:35:35]: Detected iOS/Mac project in current directory...
[03:35:35]: This setup will help you get up and running in no time.
[03:35:35]: First, it will move the config files from `deliver` and `snapshot`
[03:35:35]: into the subfolder `fastlane`.
[03:35:35]: fastlane will check what tools you're already using and set up
[03:35:35]: the tool automatically for you. Have fun!
Do you have everything commited in version control? If not please do so now! (y/n)
y
[03:35:38]: Created new folder './fastlane'.
[03:35:38]: ------------------------------
2. Bundle Identifier 및 Apple ID 설정
1. ./fastlane 폴더 만들기
[apple@sutou graho]$[dev *]$ fastlane init
[03:35:35]: Detected iOS/Mac project in current directory...
[03:35:35]: This setup will help you get up and running in no time.
[03:35:35]: First, it will move the config files from `deliver` and `snapshot`
[03:35:35]: into the subfolder `fastlane`.
[03:35:35]: fastlane will check what tools you're already using and set up
[03:35:35]: the tool automatically for you. Have fun!
Do you have everything commited in version control? If not please do so now! (y/n)
y
[03:35:38]: Created new folder './fastlane'.
[03:35:38]: ------------------------------
2. Bundle Identifier 및 Apple ID 설정
[03:35:38]: To not re-enter your username and app identifier every time you run one of the fastlane tools or fastlane, these will be stored from now on.
App Identifier (com.krausefx.app): xxx.xxxxxxxx.アプリの名前
Your Apple ID ([email protected]): [email protected]
[03:35:56]: Created new file ‘./fastlane/Appfile'. Edit it to manage your preferred app metadata information.
3. deliver 설정
y
Do you want to setup 'deliver', which is used to upload app screenshots,
app metadata and app updates to the App Store?
This requires the app to be in the App Store already.
(y/n)
y
[03:35:57]: Loading up 'deliver', this might take a few seconds
[03:35:57]: Login to iTunes Connect ([email protected])
[03:36:00]: Login successful
+-------------------+-----------------------------------+
| deliver 1.5.1 Summary |
+-------------------+-----------------------------------+
| username | [email protected] |
| app_identifier | xxx.xxxxxxxxxxx.アプリの名前 |
| metadata_path | ./fastlane/metadata |
| screenshots_path | ./fastlane/screenshots |
| skip_screenshots | false |
| skip_metadata | false |
| force | false |
| submit_for_review | false |
| automatic_release | false |
+-------------------+-----------------------------------+
4.snaptShot 설정
y
Do you want to setup 'snapshot', which will help you to automatically take screenshots
of your iOS app in all languages/devices? (y/n)
y
[03:36:36]: Loading up 'snapshot', this might take a few seconds
Successfully created SnapshotHelper.swift './fastlane/SnapshotHelper.swift'
Successfully created new Snapfile at './fastlane/Snapfile'
-------------------------------------------------------
Open your Xcode project and make sure to do the following:
1) Add the ./SnapshotHelper.swift to your UI Test target
You can move the file anywhere you want
2) Call `setLanguage(app)` when launching your app
let app = XCUIApplication()
setLanguage(app)
app.launch()
3) Add `snapshot("0Launch")` to wherever you want to create the screenshots More information on GitHub: https://github.com/krausefx/snapshot
5.sigh 설정
y
를 입력합니다.Do you want to use 'sigh',
which will maintain and download the provisioning profile
for your app? (y/n)
y
Optional: The scheme name of your app (If you don't need one, just hit Enter):
[03:37:21]: 'deliver' enabled.
[03:37:21]: 'snapshot' enabled.
[03:37:21]: 'xctool' not enabled.
[03:37:21]: 'cocoapods' not enabled.
[03:37:21]: 'carthage' not enabled.
[03:37:21]: 'sigh' enabled.
[03:37:21]: Created new file './fastlane/Fastfile'.
Edit it to manage your own deployment lanes.
[03:37:21]: fastlane will send the number of errors for each action to
[03:37:21]: https://github.com/fastlane/enhancer to detect integration issues
[03:37:21]: No sensitive/private information will be uploaded
[03:37:21]: You can disable this by adding `opt_out_usage` to your Fastfile
[03:37:21]: Successfully finished setting up fastlane
Fastfile 몰래 보기
테스트 랜 시작하기
fastlane test
fastlane test
총결산
Reference
이 문제에 관하여(fastlane을 사용해 보도록 하겠습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/masashi-sutou/items/5aa17f3d439b19562b18텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)