Ionic Appflow - 找不到“捆绑程序”

问题描述

我们最近使用 gemfile 将 fastlane 添加到我们的 ionic 项目中。看起来离子 appflow 构建也使用 fastlane。尝试在 appflow 中构建项目时,我们收到此错误

$ run "fetch-updates"
$ run "build-app"
/usr/local/lib/ruby/2.6.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'bundler' 
(2.1.4) required by your /builds/project-0/Gemfile.lock. (Gem::MissingSpecVersionError)
To update to the latest version installed on your system,run `bundle update --bundler`.
To install the missing version,run `gem install bundler:2.1.4`
Checked in 
'GEM_PATH=/root/.gem/ruby/2.6.0:/usr/local/lib/ruby/gems/2.6.0:/usr/local/bundle',execute 
`gem env` for more information
   from /usr/local/lib/ruby/2.6.0/rubygems/specification.rb:1449:in `block in 
activate_dependencies'
   from /usr/local/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `each'
   from /usr/local/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `activate_dependencies'
   from /usr/local/lib/ruby/2.6.0/rubygems/specification.rb:1420:in `activate'
   from /usr/local/lib/ruby/2.6.0/rubygems.rb:304:in `block in activate_bin_path'
   from /usr/local/lib/ruby/2.6.0/rubygems.rb:303:in `synchronize'
   from /usr/local/lib/ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
   from /usr/local/bundle/bin/fastlane:23:in `<main>'

有没有办法从 appflow 中隐藏这个文件,或者告诉它不要在它自己的 fastlane 构建中使用它?或者我最好的选择是在提交之前重命名这个文件(真的不想这样做)?

解决方法

该问题是由 gemfile 锁中指定的捆绑程序版本与我们平台使用的版本不同引起的。现在应该修复了。