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

cosminstirbu opened this issue · comments

I've installed trainer using bundler (I have this in my Gemfile: gem 'trainer', '0.7.0')

When I try to run it: bundle exec trainer --help

I receive the following error:

LoadError: cannot load such file -- fastlane
  /Users/cosminstirbu/api-sdk-ios/ruby/2.2.0/gems/trainer-0.7.0/lib/trainer.rb:1:in `require'
  /Users/cosminstirbu/api-sdk-ios/ruby/2.2.0/gems/trainer-0.7.0/lib/trainer.rb:1:in `<top (required)>'
  /Users/cosminstirbu/api-sdk-ios/ruby/2.2.0/gems/trainer-0.7.0/bin/trainer:4:in `require'
  /Users/cosminstirbu/api-sdk-ios/ruby/2.2.0/gems/trainer-0.7.0/bin/trainer:4:in `<top (required)>'
  /Users/cosminstirbu/api-sdk-ios/ruby/2.2.0/bin/trainer:23:in `load'
  /Users/cosminstirbu/api-sdk-ios/ruby/2.2.0/bin/trainer:23:in `<top (required)>'

Can you share your Gemfile and Gemfile.lock?

I've attached both as a .zip file

Yah, so fastlane is missing there, make sure to add fastlane to your Gemfile 👍

But then we should update the documentation, since on the only runtime dependency is

Also, does it really need to depend on fastlane?

Right, can you try adding it and see if it works? I can't remember the reason again, but I think that should fix it

You're right, if I add it, it works. Thank you.

I also see this problem. I want to use this gem without fastlane.

Fastline is a requirement of this gem, but it is listed as a development requirement in the gemspec.

I can see that in the trainer/commands_generator there is a reference to FastlaneCore.

This gem does depend on fastlane.

Should the README and gemspec be updated? Or should this gem be able to stand on its own without fastlane?

I think that's because otherwise you end up in a dependency circle, but I might recall this wrong.