自动化打包之fastlane--(3) 安装fir插件图文教程

自动化打包之fastlane–(1) 研究之必须提前了解的几点

自动化打包之fastlane–(2) fastlane init图文教程

自动化打包之fastlane–(3) 安装fir插件图文教程

自动化打包之fastlane–(4) 安装其他插件

自动化打包之fastlane–(5) 自动打包到蒲公英

自动化打包之fastlane–(6) ruby使用小结

自动化打包之fastlane–(7) 常用actons操作

自动化打包之fastlane–(8) 代码签名和项目配置

自动化打包之fastlane–(9) 常见错误

    • 1. 安装插件
    • 2. CFPropertyList版本冲突处理
    • 3. 安装rest-client (2.0.2)
    • 4. 继续安装fir ,一直坚持根据提示处理下去
    • 5. bundle exec fastlane add_plugin fir 安装fir插件

1. 安装插件

例如安装fir,
打开终端,cd到当前项目,运行下面代码

bundle exec fastlane add_plugin fir 

自动化打包之fastlane--(3) 安装fir插件图文教程_第1张图片

会报CFPropertyList的版本冲突

自动化打包之fastlane--(3) 安装fir插件图文教程_第2张图片

2. CFPropertyList版本冲突处理

根据提示bundle update处理
提示需要输入密码
自动化打包之fastlane--(3) 安装fir插件图文教程_第3张图片

输入密码后有提示报错!!!
自动化打包之fastlane--(3) 安装fir插件图文教程_第4张图片

rest-client (2.0.2) 安装不成功,根据提示
gem install rest-client -v '2.0.2' --source 'https://ruby.taobao.org/'
执行这句命令安装

3. 安装rest-client (2.0.2)

command + N 命令,打开新的终端

gem install rest-client -v '2.0.2' --source 'https://ruby.taobao.org/'

提示没有权限访问/Library/Ruby/Gems/2.3.0

自动化打包之fastlane--(3) 安装fir插件图文教程_第5张图片

//使用sudo访问权限,输入密码,即可安装成功
sudo gem install rest-client -v '2.0.2' --source 'https://ruby.taobao.org/'

4. 继续安装fir ,一直坚持根据提示处理下去

报错提示: 在Gemfile文件中找不到gem 'fastlane-plugin-fir'命令

这里写图片描述

打开Gemfile文件,确实没有gem 'fastlane-plugin-fir',多了一行代码

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)

可以看到,插件统一放到Pluginfile 文件中管理了

自动化打包之fastlane--(3) 安装fir插件图文教程_第6张图片

打开fastlane文件夹下的Pluginfile文件,能找到gem 'fastlane-plugin-fir' 命令,插件却没有安装成功

自动化打包之fastlane--(3) 安装fir插件图文教程_第7张图片

zhouyu:wocoor zhouyu$ bundle install
Using CFPropertyList 3.0.0
Using public_suffix 2.0.5
Using addressable 2.5.2
Using atomos 0.1.2
Using babosa 1.0.2
Using bundler 1.16.2
Using claide 1.0.2
Using colored 1.2
Using colored2 3.1.2
Using highline 1.7.10
Using commander-fastlane 4.4.6
Using declarative 0.0.10
Using declarative-option 0.1.0
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using domain_name 0.5.20180417
Using dotenv 2.4.0
Using emoji_regex 0.1.1
Using excon 0.62.0
Using multipart-post 2.0.0
Using faraday 0.15.2
Using http-cookie 1.0.3
Using faraday-cookie_jar 0.0.6
Using faraday_middleware 0.12.2
Using fastimage 2.1.3
Using gh_inspector 1.1.3
Using jwt 2.1.0
Using little-plugger 1.1.4
Using multi_json 1.13.1
Using logging 2.2.2
Using memoist 0.16.0
Using os 0.9.6
Using signet 0.8.1
Using googleauth 0.6.2
Using httpclient 2.8.3
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using uber 0.1.0
Using representable 3.0.4
Using retriable 3.1.1
Using google-api-client 0.21.2
Using json 1.8.3
Using mini_magick 4.5.1
Using multi_xml 0.6.0
Using plist 3.4.0
Using rubyzip 1.2.1
Using security 0.1.3
Using naturally 2.1.0
Using simctl 1.6.4
Using slack-notifier 2.3.2
Using terminal-notifier 1.8.0
Using unicode-display_width 1.3.2
Using terminal-table 1.8.0
Using tty-screen 0.6.4
Using tty-cursor 0.5.0
Using tty-spinner 0.8.0
Using word_wrap 1.0.0
Using nanaimo 0.2.5
Using xcodeproj 1.5.9
Using rouge 2.0.7
Using xcpretty 0.2.8
Using xcpretty-travis-formatter 1.0.0
Using fastlane 2.96.1
Bundle complete! 1 Gemfile dependency, 63 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
zhouyu:wocoor zhouyu$ bundle exec fastlane add_plugin fir
[✔] ? 
[00:29:22]: WARNING: fastlane requires your locale to be set to UTF-8. To learn more go to https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables
[00:29:23]: Plugin 'fastlane-plugin-fir' was added to './fastlane/Pluginfile'
[00:29:23]: It looks like fastlane plugins are not yet set up for this project.
[00:29:23]: fastlane will modify your existing Gemfile at path '/Users/zhouyu/Desktop/wocoor/Gemfile'
[00:29:23]: This change is necessary for fastlane plugins to work
[00:29:23]: Should fastlane modify the Gemfile at path
'/Users/zhouyu/Desktop/wocoor/Gemfile' for you? (y/n)
y
[00:29:55]: Successfully modified '/Users/zhouyu/Desktop/wocoor/Gemfile'
[00:29:55]: Make sure to commit your Gemfile, Gemfile.lock and Pluginfile to version control
Installing plugin dependencies...
Bundler could not find compatible versions for gem "CFPropertyList":
  In snapshot (Gemfile.lock):
    CFPropertyList (= 3.0.0)

  In Gemfile:
    fastlane was resolved to 2.96.1, which depends on
      CFPropertyList (< 4.0.0, >= 2.3)

    fastlane-plugin-fir was resolved to 0.3.0, which depends on
      fir-cli (~> 1.6) was resolved to 1.6.8, which depends on
        CFPropertyList (~> 2.3)

    fastlane was resolved to 2.96.1, which depends on
      simctl (~> 1.6.3) was resolved to 1.6.4, which depends on
        CFPropertyList

    fastlane was resolved to 2.96.1, which depends on
      xcodeproj (< 2.0.0, >= 1.5.7) was resolved to 1.5.9, which depends on
        CFPropertyList (< 4.0, >= 2.3.3)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
zhouyu:wocoor zhouyu$ bundle update
Fetching gem metadata from https://ruby.taobao.org/..........
Fetching gem metadata from https://ruby.taobao.org/..
Resolving dependencies............
Fetching CFPropertyList 2.3.6 (was 3.0.0)


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 
Installing CFPropertyList 2.3.6 (was 3.0.0)
Using public_suffix 2.0.5
Using addressable 2.5.2
Fetching oj 3.6.0
Installing oj 3.6.0 with native extensions
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using domain_name 0.5.20180417
Using http-cookie 1.0.3
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Fetching netrc 0.11.0
Installing netrc 0.11.0
Fetching rest-client 2.0.2
Installing rest-client 2.0.2
Gem::FilePermissionError: You don't have write permissions for the
/var/folders/21/lll4xyxx7sl3w9c0bvvv6s600000gn/T/bundler20180525-11629-1vv41zyrest-client-2.0.2/bin directory.
An error occurred while installing rest-client (2.0.2), and Bundler cannot continue.
Make sure that `gem install rest-client -v '2.0.2' --source 'https://ruby.taobao.org/'` succeeds before bundling.

In Gemfile:
  fastlane-plugin-fir was resolved to 0.3.0, which depends on
    fir-cli was resolved to 1.6.8, which depends on
      api_tools was resolved to 0.0.6, which depends on
        rest-client
zhouyu:wocoor zhouyu$ bundle exec fastlane add_plugin fir
Could not find gem 'fastlane-plugin-fir' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
zhouyu:wocoor zhouyu$ bundle install
Fetching gem metadata from https://ruby.taobao.org/..........
Fetching gem metadata from https://ruby.taobao.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "CFPropertyList":
  In snapshot (Gemfile.lock):
    CFPropertyList (= 3.0.0)

  In Gemfile:
    fastlane was resolved to 2.96.1, which depends on
      CFPropertyList (< 4.0.0, >= 2.3)

    fastlane-plugin-fir was resolved to 0.3.0, which depends on
      fir-cli (~> 1.6) was resolved to 1.6.8, which depends on
        CFPropertyList (~> 2.3)

    fastlane was resolved to 2.96.1, which depends on
      simctl (~> 1.6.3) was resolved to 1.6.4, which depends on
        CFPropertyList

    fastlane was resolved to 2.96.1, which depends on
      xcodeproj (< 2.0.0, >= 1.5.7) was resolved to 1.5.9, which depends on
        CFPropertyList (< 4.0, >= 2.3.3)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
zhouyu:wocoor zhouyu$ bundle exec fastlane add_plugin fir

[!] There was an error parsing `Gemfile`: syntax error, unexpected unary-, expecting keyword_do or '{' or '(' - gem install rest-client -v '2.0.2' --source 'https://ruby.taobao.org/'
                         ^
/Users/zhouyu/Desktop/wocoor/Gemfile:5: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
gem install rest-client -v '2.0.2' --source 'https://ruby.taobao.org/'
                                             ^. Bundler cannot continue.

 #  from /Users/zhouyu/Desktop/wocoor/Gemfile:5
 #  -------------------------------------------
 #  gem "fastlane"
 >  gem install rest-client -v '2.0.2' --source 'https://ruby.taobao.org/'
 #  
 #  -------------------------------------------

zhouyu:wocoor zhouyu$ bundle exec fastlane add_plugin fir
Could not find gem 'fastlane-plugin-fir' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
zhouyu:wocoor zhouyu$ bundle install
Fetching gem metadata from https://ruby.taobao.org/..........
Fetching gem metadata from https://ruby.taobao.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "CFPropertyList":
  In snapshot (Gemfile.lock):
    CFPropertyList (= 3.0.0)

  In Gemfile:
    fastlane was resolved to 2.96.1, which depends on
      CFPropertyList (< 4.0.0, >= 2.3)

    fastlane-plugin-fir was resolved to 0.3.0, which depends on
      fir-cli (~> 1.6) was resolved to 1.6.8, which depends on
        CFPropertyList (~> 2.3)

    fastlane was resolved to 2.96.1, which depends on
      simctl (~> 1.6.3) was resolved to 1.6.4, which depends on
        CFPropertyList

    fastlane was resolved to 2.96.1, which depends on
      xcodeproj (< 2.0.0, >= 1.5.7) was resolved to 1.5.9, which depends on
        CFPropertyList (< 4.0, >= 2.3.3)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
zhouyu:wocoor zhouyu$ bundle update
Fetching gem metadata from https://ruby.taobao.org/..........
Fetching gem metadata from https://ruby.taobao.org/..
Resolving dependencies....
Using CFPropertyList 2.3.6 (was 3.0.0)
Using public_suffix 2.0.5
Using addressable 2.5.2
Using oj 3.6.0
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using domain_name 0.5.20180417
Using http-cookie 1.0.3
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using netrc 0.11.0
Using rest-client 2.0.2
Fetching api_tools 0.0.6


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 
Installing api_tools 0.0.6
Using atomos 0.1.2
Using babosa 1.0.2
Using bundler 1.16.2
Fetching chunky_png 1.3.10
Installing chunky_png 1.3.10
Using claide 1.0.2
Using colored 1.2
Using colored2 3.1.2
Using highline 1.7.10
Using commander-fastlane 4.4.6
Using declarative 0.0.10
Using declarative-option 0.1.0
Using dotenv 2.4.0
Using emoji_regex 0.1.1
Using excon 0.62.0
Using multipart-post 2.0.0
Using faraday 0.15.2
Using faraday-cookie_jar 0.0.6
Using faraday_middleware 0.12.2
Using fastimage 2.1.3
Using gh_inspector 1.1.3
Using jwt 2.1.0
Using little-plugger 1.1.4
Using multi_json 1.13.1
Using logging 2.2.2
Using memoist 0.16.0
Using os 0.9.6
Using signet 0.8.1
Using googleauth 0.6.2
Using httpclient 2.8.3
Using uber 0.1.0
Using representable 3.0.4
Using retriable 3.1.1
Using google-api-client 0.21.2
Fetching json 2.1.0 (was 1.8.3)
Installing json 2.1.0 (was 1.8.3) with native extensions
Using mini_magick 4.5.1
Using multi_xml 0.6.0
Using plist 3.4.0
Using rubyzip 1.2.1
Using security 0.1.3
Using naturally 2.1.0
Using simctl 1.6.4
Using slack-notifier 2.3.2
Using terminal-notifier 1.8.0
Using unicode-display_width 1.3.2
Using terminal-table 1.8.0
Using tty-screen 0.6.4
Using tty-cursor 0.5.0
Using tty-spinner 0.8.0
Using word_wrap 1.0.0
Using nanaimo 0.2.5
Using xcodeproj 1.5.9
Using rouge 2.0.7
Using xcpretty 0.2.8
Using xcpretty-travis-formatter 1.0.0
Using fastlane 2.96.1
Fetching rqrcode 0.10.1
Installing rqrcode 0.10.1
Fetching ruby_android 0.7.7
Installing ruby_android 0.7.7
Fetching thor 0.20.0
Installing thor 0.20.0
Gem::FilePermissionError: You don't have write permissions for the
/var/folders/21/lll4xyxx7sl3w9c0bvvv6s600000gn/T/bundler20180525-12351-1k6qbtthor-0.20.0/bin directory.
An error occurred while installing thor (0.20.0), and Bundler cannot continue.
Make sure that `gem install thor -v '0.20.0' --source 'https://ruby.taobao.org/'` succeeds before bundling.

In Gemfile:
  fastlane-plugin-fir was resolved to 0.3.0, which depends on
    fir-cli was resolved to 1.6.8, which depends on
      thor
zhouyu:wocoor zhouyu$ bundle exec fastlane add_plugin fir
Could not find gem 'fastlane-plugin-fir' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
zhouyu:wocoor zhouyu$ bundle install
Fetching gem metadata from https://ruby.taobao.org/..........
Fetching gem metadata from https://ruby.taobao.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "CFPropertyList":
  In snapshot (Gemfile.lock):
    CFPropertyList (= 3.0.0)

  In Gemfile:
    fastlane was resolved to 2.96.1, which depends on
      CFPropertyList (< 4.0.0, >= 2.3)

    fastlane-plugin-fir was resolved to 0.3.0, which depends on
      fir-cli (~> 1.6) was resolved to 1.6.8, which depends on
        CFPropertyList (~> 2.3)

    fastlane was resolved to 2.96.1, which depends on
      simctl (~> 1.6.3) was resolved to 1.6.4, which depends on
        CFPropertyList

    fastlane was resolved to 2.96.1, which depends on
      xcodeproj (< 2.0.0, >= 1.5.7) was resolved to 1.5.9, which depends on
        CFPropertyList (< 4.0, >= 2.3.3)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
zhouyu:wocoor zhouyu$ bundle update
Fetching gem metadata from https://ruby.taobao.org/..........
Fetching gem metadata from https://ruby.taobao.org/..
Resolving dependencies....
Using CFPropertyList 2.3.6 (was 3.0.0)
Using public_suffix 2.0.5
Using addressable 2.5.2
Using oj 3.6.0
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using domain_name 0.5.20180417
Using http-cookie 1.0.3
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using netrc 0.11.0
Using rest-client 2.0.2
Using api_tools 0.0.6
Using atomos 0.1.2
Using babosa 1.0.2
Using bundler 1.16.2
Using chunky_png 1.3.10
Using claide 1.0.2
Using colored 1.2
Using colored2 3.1.2
Using highline 1.7.10
Using commander-fastlane 4.4.6
Using declarative 0.0.10
Using declarative-option 0.1.0
Using dotenv 2.4.0
Using emoji_regex 0.1.1
Using excon 0.62.0
Using multipart-post 2.0.0
Using faraday 0.15.2
Using faraday-cookie_jar 0.0.6
Using faraday_middleware 0.12.2
Using fastimage 2.1.3
Using gh_inspector 1.1.3
Using jwt 2.1.0
Using little-plugger 1.1.4
Using multi_json 1.13.1
Using logging 2.2.2
Using memoist 0.16.0
Using os 0.9.6
Using signet 0.8.1
Using googleauth 0.6.2
Using httpclient 2.8.3
Using uber 0.1.0
Using representable 3.0.4
Using retriable 3.1.1
Using google-api-client 0.21.2
Using json 2.1.0 (was 1.8.3)
Using mini_magick 4.5.1
Using multi_xml 0.6.0
Using plist 3.4.0
Using rubyzip 1.2.1
Using security 0.1.3
Using naturally 2.1.0
Using simctl 1.6.4
Using slack-notifier 2.3.2
Using terminal-notifier 1.8.0
Using unicode-display_width 1.3.2
Using terminal-table 1.8.0
Using tty-screen 0.6.4
Using tty-cursor 0.5.0
Using tty-spinner 0.8.0
Using word_wrap 1.0.0
Using nanaimo 0.2.5
Using xcodeproj 1.5.9
Using rouge 2.0.7
Using xcpretty 0.2.8
Using xcpretty-travis-formatter 1.0.0
Using fastlane 2.96.1
Using rqrcode 0.10.1
Using ruby_android 0.7.7
Using thor 0.20.0
Fetching fir-cli 1.6.8


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 
Installing fir-cli 1.6.8
Gem::FilePermissionError: You don't have write permissions for the
/var/folders/21/lll4xyxx7sl3w9c0bvvv6s600000gn/T/bundler20180525-12621-b8b86rfir-cli-1.6.8/bin directory.
An error occurred while installing fir-cli (1.6.8), and Bundler cannot continue.
Make sure that `gem install fir-cli -v '1.6.8' --source 'https://ruby.taobao.org/'` succeeds before bundling.

In Gemfile:
  fastlane-plugin-fir was resolved to 0.3.0, which depends on
    fir-cli
zhouyu:wocoor zhouyu$ bundle exec fastlane add_plugin fir
Could not find gem 'fastlane-plugin-fir' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
zhouyu:wocoor zhouyu$ bundle instal
Fetching gem metadata from https://ruby.taobao.org/..........
Fetching gem metadata from https://ruby.taobao.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "CFPropertyList":
  In snapshot (Gemfile.lock):
    CFPropertyList (= 3.0.0)

  In Gemfile:
    fastlane was resolved to 2.96.1, which depends on
      CFPropertyList (< 4.0.0, >= 2.3)

    fastlane-plugin-fir was resolved to 0.3.0, which depends on
      fir-cli (~> 1.6) was resolved to 1.6.8, which depends on
        CFPropertyList (~> 2.3)

    fastlane was resolved to 2.96.1, which depends on
      simctl (~> 1.6.3) was resolved to 1.6.4, which depends on
        CFPropertyList

    fastlane was resolved to 2.96.1, which depends on
      xcodeproj (< 2.0.0, >= 1.5.7) was resolved to 1.5.9, which depends on
        CFPropertyList (< 4.0, >= 2.3.3)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
zhouyu:wocoor zhouyu$ bundle update
Fetching gem metadata from https://ruby.taobao.org/..........
Fetching gem metadata from https://ruby.taobao.org/..
Resolving dependencies.........
Using CFPropertyList 2.3.6 (was 3.0.0)
Using public_suffix 2.0.5
Using addressable 2.5.2
Using oj 3.6.0
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using domain_name 0.5.20180417
Using http-cookie 1.0.3
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using netrc 0.11.0
Using rest-client 2.0.2
Using api_tools 0.0.6
Using atomos 0.1.2
Using babosa 1.0.2
Using bundler 1.16.2
Using chunky_png 1.3.10
Using claide 1.0.2
Using colored 1.2
Using colored2 3.1.2
Using highline 1.7.10
Using commander-fastlane 4.4.6
Using declarative 0.0.10
Using declarative-option 0.1.0
Using dotenv 2.4.0
Using emoji_regex 0.1.1
Using excon 0.62.0
Using multipart-post 2.0.0
Using faraday 0.15.2
Using faraday-cookie_jar 0.0.6
Using faraday_middleware 0.12.2
Using fastimage 2.1.3
Using gh_inspector 1.1.3
Using jwt 2.1.0
Using little-plugger 1.1.4
Using multi_json 1.13.1
Using logging 2.2.2
Using memoist 0.16.0
Using os 0.9.6
Using signet 0.8.1
Using googleauth 0.6.2
Using httpclient 2.8.3
Using uber 0.1.0
Using representable 3.0.4
Using retriable 3.1.1
Using google-api-client 0.21.2
Using json 2.1.0 (was 1.8.3)
Using mini_magick 4.5.1
Using multi_xml 0.6.0
Using plist 3.4.0
Using rubyzip 1.2.1
Using security 0.1.3
Using naturally 2.1.0
Using simctl 1.6.4
Using slack-notifier 2.3.2
Using terminal-notifier 1.8.0
Using unicode-display_width 1.3.2
Using terminal-table 1.8.0
Using tty-screen 0.6.4
Using tty-cursor 0.5.0
Using tty-spinner 0.8.0
Using word_wrap 1.0.0
Using nanaimo 0.2.5
Using xcodeproj 1.5.9
Using rouge 2.0.7
Using xcpretty 0.2.8
Using xcpretty-travis-formatter 1.0.0
Using fastlane 2.96.1
Using rqrcode 0.10.1
Using ruby_android 0.7.7
Using thor 0.20.0
Using fir-cli 1.6.8
Fetching fastlane-plugin-fir 0.3.0


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 
Installing fastlane-plugin-fir 0.3.0
Bundle updated!

根据提示一直往下处理,需要安装的gem软件包

Last login: Fri May 25 00:41:43 on ttys005
zhouyu:~ zhouyu$ gem install thor -v '0.20.0' --source 'https://ruby.taobao.org/'
Fetching: thor-0.20.0.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
zhouyu:~ zhouyu$ sudo gem install thor -v '0.20.0' --source 'https://ruby.taobao.org/'
Password:
Successfully installed thor-0.20.0
Parsing documentation for thor-0.20.0
Installing ri documentation for thor-0.20.0
Done installing documentation for thor after 1 seconds
1 gem installed
zhouyu:~ zhouyu$ sudo gem install fir-cli -v '1.6.8' --source 'https://ruby.taobao.org/'

        ______________        ________    ____
       / ____/  _/ __ \      / ____/ /   /  _/
      / /_   / // /_/ /_____/ /   / /    / /
     / __/ _/ // _, _/_____/ /___/ /____/ /
    /_/   /___/_/ |_|      \____/_____/___/

  ## 更新记录 
  - (1.6.8) 取消了远端回调, 改为本地callback
  - (1.6.8) fir-cli 也支持了私有部署模式
  - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源
  - 欢迎 fork, issue 和 pull request

Successfully installed fir-cli-1.6.8
Parsing documentation for fir-cli-1.6.8
Installing ri documentation for fir-cli-1.6.8
Done installing documentation for fir-cli after 0 seconds
1 gem installed

经历四五次操作后,终于安装全了所需要的gem软件包

自动化打包之fastlane--(3) 安装fir插件图文教程_第8张图片

5. bundle exec fastlane add_plugin fir 安装fir插件

安装成功!!!!!!

自动化打包之fastlane--(3) 安装fir插件图文教程_第9张图片

你可能感兴趣的:(自动化打包Jenkin,iOS开发)