Use of iOS Fastlane

Fastlane automation package, upload fir / Dandelion

1, Fastlane integration

  1)sudo gem install fastlane -NV  //安装Fastlane  

                                                            // gem with a time of installation, you need to pay attention to mirror source

                                                            // sudo gem sources --add https://rubygems.org

  2) Fastlane --version   // installed, view the current version of Fastlane

  3) the need to integrate engineering directory

    the init Fastlane   // will generate the corresponding control file for the current project

                           // initialization process, step prompted to enter information, account information, the selection mode and the like, 3, ~ barabara

                           // this process, the need to hang proxy, or updates are not down

    4) After fastlane init is completed, the path in the project, will be more fastlane, Gemfile, Gemfile.lock file

        Fastfile fastlane file folder, the write control command. See the picture below, ✌️

    5) plug-in installation, or upload Fir.im Dandelion need to install the appropriate plugin

            Fastlane add_plugin pgyer Exec bundle   // plugins installed dandelion

            Fastlane add_plugin firim Exec bundle   // install plug-fir

            fastlane add_plugin versioning // version management plug-in, I was manually controlled, so useless

    6) If the cocoapods in Gemfile file, must be added

            gem 'cocoapods'

 2, Fastlane file

    Fastlane file, you will see lane: test1 do. . . end can be understood as a control flow. This file may be a plurality of control flow. When the flow of control to be executed wherein a time of the terminal can invoke fastlane test1

2332508-5f961f3bd75ef08d.png

In the integrated process, will encounter other problems, here it is probably about a process.

Guess you like

Origin blog.csdn.net/weixin_34419321/article/details/91015330