自动化打包之fastlane–(1) 研究之必须提前了解的几点
自动化打包之fastlane–(2) fastlane init图文教程
自动化打包之fastlane–(3) 安装fir插件图文教程
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