Pay attention to the reference address: /doc/view/fastlane.
First, install the prodigal terminal command:
Sudo gem installation expressway -NV
Secondly, you should install the configuration project for each of the following projects.
Note that for the first upload, you must manually type a package and upload it to Dandelion. The application can only be uploaded after it is generated. You can't create a blank application in dandelion, otherwise automatic packaging will fail.
1. Open the terminal cd and enter the command to initialize the project in the project directory:
Fast lane initialization
Note: fastlane will prompt us how to deal with it:
Option 1: automatic screenshot. It takes a lot of time to manually take screenshots and publish the processed images to a test or online platform, and fastlane can simplify this step. (This option has not been tested, because it is not used for the time being. )
Option 2: publish the test package to TestFlight.
Option 3: Automatically publish to App Store.
Option 4: Manual setting (custom publishing platform).
Here we choose option 4. Because we need to submit the test app to Dandelion.
If the $ TERM bundle update card is stuck in the picture below for a long time while fastlane init is running, we will first forcibly shut down the terminal and then try to use fastlane init.
After the first installation, you need to press enter several times to complete a step.
2. Install dandelion prodigal plug-in.
In the terminal (terminal cd to project directory), enter the following command to install dandelion's fastlane plug-in:
Fastlane plug-in
Note: I want you to enter it here, with y in the middle, that's all.
/users/daiweibao/desktop/testsender/gemfile' for you? (Yes/No)
Then this step will take a long time.
Install plug-in dependencies ...
Then you may be asked to enter your computer password.
3. Manually open the configuration information of fastlane/Fastfile file in the project directory:
4. Pack and automatically upload the App to Dandelion (only this step is needed for subsequent packaging).
After completing the above configuration, you can use the prodigal son to package the App and upload it to Dandelion automatically. Under the terminal, navigate to the directory where the project is located and enter the following command:
Fast lane beta
Note: If there are multiple targets in the project, you will be asked to choose which one to package: Select Scheme: Just select the corresponding number (a number must be selected).
Terminal appears: fast lane. Tool completed successfully? Represents successful upload to dandelion. The following figure
Finally, the attachment: the configuration content in the Fastfile file.
Configuration can automatically select which type to package multiple taregets gets gets projects, such as: miniVideo, build _ app (export _ method: "development", scheme: "mini video").
If the certificate is incorrect, please refer to: https://docs.fastlane.tools/codesigning/xcode-project/# XCode-9 and above.
Error report:
Error: while executing gem ... (Gem::FilePermissionError)
You don't have write permission to the /usr/bin directory.
Stubborn non-access processing method: -n /usr/local/bin
Modify command: click the green box in the figure to modify.
Advanced Advanced (Tide)
IOS-fastlane automatic packaging test flight advanced edition