Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load such file -- fastlane #16

Open
cosminstirbu opened this issue Sep 26, 2017 · 9 comments
Open

Cannot load such file -- fastlane #16

cosminstirbu opened this issue Sep 26, 2017 · 9 comments

Comments

@cosminstirbu
Copy link

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)>'
@KrauseFx
Copy link
Member

Can you share your Gemfile and Gemfile.lock?

@cosminstirbu
Copy link
Author

I've attached both as a .zip file

Archive.zip

@KrauseFx
Copy link
Member

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

@cosminstirbu
Copy link
Author

But then we should update the documentation, since on https://rubygems.org/gems/trainer the only runtime dependency is https://rubygems.org/gems/plist.

Also, does it really need to depend on fastlane?

@KrauseFx
Copy link
Member

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

@cosminstirbu
Copy link
Author

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

@jmoody
Copy link
Contributor

jmoody commented Jan 4, 2018

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

@jmoody
Copy link
Contributor

jmoody commented Jan 4, 2018

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?

@KrauseFx
Copy link
Member

KrauseFx commented Jan 4, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants