11. - Fastlane(I)
⾸先,我們就在專案上⾯加上Fastlane吧,因此我們需要到⽬標專案的.xcodeproj
fastlane
fastlane install
接著他會問你⼀⼤串問題
1. [15:04:18]: Detected iOS/Mac project in current directory...
[15:04:18]: This setup will help you get up and running in no time.
[15:04:18]: First, it will move the config files from `deliver` and `snapshot`
[15:04:18]: into the subfolder `fastlane`.
[15:04:18]: fastlane will check what tools you're already using and set up
[15:04:18]: the tool automatically for you. Have fun!
Do you have everything commited in version control? If not please do so now!(y/n)
(是否要⽤commited控制版本︖)
2. Created new folder './fastlane'.[15:04:31]: ------------------------------
[15:04:31]: 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):
(輸入App的Bundle ID)
12. - Fastlane(II)
3. Your Apple ID (fastlane@krausefx.com):
(輸入Developer Apple ID)
[15:06:27]: Created new file './fastlane/Appfile'. Edit it to manage your preferred app metadata information.
Do you want to setup 'deliver', which is used to upload app screenshots, appmetadata and app updates to the App Store?
This requires the app to be in the AppStore already. (y/n)
(是否要上傳至AppStore,這邊我選n)
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他會開始loading截圖的⼀些檔案)
6. 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 want2) 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 screenshotsMore information on GitHub: https://
github.com/krausefx/snapshotDo you want to use 'sigh', which will maintain and download the provisioningprofile for your
app? (y/n)
If y) Optional: The scheme name of your app (If you don't need one, just hit
Enter):
7. Do you want to enable crash reporting? (y/n)
(是否要 Crash ,這邊我選y)
這些問題都回答完後他就會在你的⽬錄下新增⼀個Fastlane的資料夾