fastlane-community / trainer

Convert xcodebuild plist and xcresult files to JUnit reports

Home Page:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot load such file -- fastlane_core (LoadError)

maxfriedrich opened this issue · comments

I'm using trainer 0.5.0 standalone (not as a fastlane plugin). I'm using RVM ruby and installing the gem with bundle.

I get this output:

$ bundle exec trainer
/Users/max.friedrich/.rvm/gems/ruby-2.3.1/gems/trainer-0.5.0/lib/trainer.rb:1:in `require': cannot load such file -- fastlane_core (LoadError)
	from /Users/max.friedrich/.rvm/gems/ruby-2.3.1/gems/trainer-0.5.0/lib/trainer.rb:1:in `<top (required)>'
	from /Users/max.friedrich/.rvm/gems/ruby-2.3.1/gems/trainer-0.5.0/bin/trainer:4:in `require'
	from /Users/max.friedrich/.rvm/gems/ruby-2.3.1/gems/trainer-0.5.0/bin/trainer:4:in `<top (required)>'
	from /Users/max.friedrich/.rvm/gems/ruby-2.3.1/bin/trainer:22:in `load'
	from /Users/max.friedrich/.rvm/gems/ruby-2.3.1/bin/trainer:22:in `<main>'
	from /Users/max.friedrich/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
	from /Users/max.friedrich/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'

fastlane_core is indeed required in lib/trainer.rb but was recently removed as a dependency in trainer.gemspec.

fastlane core is now part of fastlane. Can you share your Gemfile? Does it include the fastlane gem as dependency?

@maxfriedrich I had this same issue. I solved it by installing fastlane with: sudo gem install fastlane -NV

Ah, thanks! I don't have fastlane in my Gemfile. But if it's indeed a requirement, it should be added to trainer.gemspec, right?

@maxfriedrich actually that can't be done, as it would have a circular dependency then as soon as you add the pilot plugin. Instead you have to use a Gemfile anyway once you use fastlane with plugins 👍

OK! Thanks! 👍