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

本文详细介绍了在自动化打包过程中如何使用fastlane安装fir插件,包括遇到的CFPropertyList版本冲突处理、rest-client的安装以及解决安装过程中的一系列问题,最终成功安装fir插件。
摘要由CSDN通过智能技术生成

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

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

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

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

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

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

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

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

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

1. 安装插件

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

bundle exec fastlane add_plugin fir 

这里写图片描述

会报CFPropertyList的版本冲突

这里写图片描述

2. CFPropertyList版本冲突处理

根据提示bundle update处理
提示需要输入密码
这里写图片描述

输入密码后有提示报错!!!
这里写图片描述

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

这里写图片描述

//使用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文件夹下的Pluginfile文件,能找到gem 'fastlane-plugin-fir' 命令,插件却没有安装成功

这里写图片描述

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 ge
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值