0

我们最近使用 gemfile 在我们的 ionic 项目中添加了 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 构建中使用它?或者我最好的选择是在提交之前重命名这个文件(真的不想这样做)?

4

1 回答 1

2

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

于 2021-03-02T03:40:33.913 回答