fastlane: fastlane init fails with `full_gem_path': uninitialized constant Bundler::Plugin::API::Source (NameError)
Hi guys
I’m new to fastlane and I’ve just been following the setup instructions to install and init fastlane, here are the commands I’ve run:
sudo gem install fastlane --verbose
I then go into the project directory which holds the ios .xcodeproj file and try to create the init file with the following:
fastlane init
However, it falls over straight away with the message below, does anybody know how I can get up and running (i only want to specify Xcode 8 for snapshot but it looks like i need to run it within snapshot and I can’t get snapshot to even create the snapfile!)
TrevR
/Library/Ruby/Gems/2.0.0/gems/bundler-1.13.1/lib/bundler/rubygems_ext.rb:45:in `full_gem_path': uninitialized constant Bundler::Plugin::API::Source (NameError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1391:in `contains_requirable_file?'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `block in require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:823:in `block in each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:822:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:822:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:67:in `find'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:67:in `require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.13.1/lib/bundler/plugin/api/source.rb:2:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.13.1/lib/bundler/rubygems_ext.rb:45:in `full_gem_path'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1391:in `contains_requirable_file?'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `block in require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:823:in `block in each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:822:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:822:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:67:in `find'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:67:in `require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.13.1/lib/bundler.rb:11:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.103.0/lib/fastlane/plugins/plugin_manager.rb:3:in `<class:PluginManager>'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.103.0/lib/fastlane/plugins/plugin_manager.rb:2:in `<module:Fastlane>'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.103.0/lib/fastlane/plugins/plugin_manager.rb:1:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.103.0/lib/fastlane/plugins/plugins.rb:9:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.103.0/lib/fastlane.rb:22:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.103.0/lib/fastlane/cli_tools_distributor.rb:14:in `take_off'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.103.0/bin/fastlane:5:in `<top (required)>'
from /usr/local/bin/fastlane:23:in `load'
from /usr/local/bin/fastlane:23:in `<main>'
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (5 by maintainers)
And here’s how to fix this error on Travis (works with any macOS image):
Solution
Part 1
Check if you have the right version of RubyGems
If you have not, upgrade your RubyGems:
Part 2
Now check you have the last bundler version:
If you have not, upgrade your Bundler:
Thank God! for me it was version 1.13.1
gem uninstall bundler -v1.13.1It has been fixed in bundler 1.13.4, see https://github.com/bundler/bundler/pull/5010
@KrauseFx I know but what i want to say is this issue is not from your gem is from RubyGems and Bundler.
@wuaschtikus @0xced same here, and your solution fixed the issue for my Travis build. Thanks a lot.