Reputation: 24810
I'm trying to setup CI-CD for firebase app distribution on my local system.
fastlane-plugin-firebase_app_distribution
plugin can't be found.
Error loading plugin 'fastlane-plugin-firebase_app_distribution': cannot load such file -- fastlane/plugin/firebase_app_distribution
+-------------------------------------------+-----------+------------------+
| Used plugins |
+-------------------------------------------+-----------+------------------+
| Plugin | Version | Action |
+-------------------------------------------+-----------+------------------+
| fastlane-plugin-firebase_app_distribution | undefined | No actions found |
+-------------------------------------------+-----------+------------------+
What should I do?
Upvotes: 15
Views: 18465
Reputation: 160
Use this cmd to add the firebase_app_distribution plugin if you are using Fastlane.
bundle exec fastlane add_plugin firebase_app_distribution
Upvotes: 0
Reputation: 1739
Flutter and Github Actions for Android:
If you are setting up Github Actions for a Flutter project for android and run into this error in one of your steps, see the work flow below:
release:
runs-on: ubuntu-latest
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
steps:
- uses: actions/checkout@v3
- name: Set up ruby
uses: ruby/setup-ruby@v1
- name: Setup Fastlane
working-directory: ./android # <-- Make sure you have this
run: bundle install
- name: Run Fastlane
working-directory: ./android. # <-- Make sure you have this
run: bundle exec fastlane android [lane name].
Make sure to setup the ruby/setup-ruby@v1 action correctly depending on your project. see the doc: https://github.com/ruby/setup-ruby
In my case I have not specified the ruby version because I am using the .ruby-version file in my project.
Upvotes: 0
Reputation: 119
Probably, Fastlane is not up to date. Might need to check fastlane version and update it
bundle update fastlane
Upvotes: 1
Reputation: 25294
Install plugin again. Command:
fastlane add_plugin firebase_app_distribution
more info: https://firebase.google.com/docs/app-distribution/ios/distribute-fastlane
If instillation does not help try to run
bundle install
And the run your lane.
Upvotes: 3
Reputation: 3514
For me simply updating the Fastlane and then updating the plugins worked
bundle update fastlane
fastlane update_plugins
Upvotes: 7
Reputation: 411
Looks like some kind of file permission issue under Catalina, so chmod might help.
But you can also install fastlane-plugin-firebase_app_distribution
in gem's USER INSTALLATION DIRECTORY
(gem env
will tell you where it is).
Uninstall the gem from the default dir:
sudo gem uninstall fastlane-plugin-firebase_app_distribution
Install in user dir:
gem install fastlane-plugin-firebase_app_distribution --user-install
Upvotes: 29
Reputation: 1858
Thank you @Balaz.
Try this. I think this will solve the issue.
sudo chmod -R a+r /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-firebase_app_distribution-0.1.4
I had the same issue.
Upvotes: 7