How to fix fastlane-plugin-firebase_app_distribution undefined
Asked Answered
K

7

14

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?

Knowle answered 21/3, 2020 at 0:54 Comment(5)
Did you install this Plugin with fastlane add_plugin fastlane-plugin-firebase_app_distribution? Or try to execute: sudo fastlane install_plugins. Seems like others have the same issue: github.com/fastlane/fastlane-plugin-firebase_app_distribution/…Chiou
Yes. sudo fastlane install_plugins worked for installing. But, when I run bundle exec fastlane testFlightRelease it throws same error.Knowle
If you use bundle, use it consistently for every Fastlane related call: bundle exec fastlane install_pluginsChiou
tried that. Didn't helpKnowle
@SagarKothari I am facing a pretty similar issue. did you find out the solutions? mine problem happens only on CI (github actions)Hypersonic
I
28

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
Insured answered 20/5, 2020 at 13:45 Comment(2)
this is the correct answer and work with me and also found it in fastlane issues github.com/fastlane/fastlane-plugin-firebase_app_distribution/…Floorwalker
On macos, if you see Gem 'fastlane-plugin-firebase_app_distribution' is not installed then try the uninstall command again without sudo. The install then worked for me, installing the latest version of the plugin.Bathometer
D
7

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.

Daumier answered 17/5, 2020 at 6:55 Comment(1)
This problem seems to be on macOS CatalinaBobbitt
A
7

For me simply updating the Fastlane and then updating the plugins worked

bundle update fastlane
fastlane update_plugins
Andel answered 8/9, 2020 at 8:39 Comment(1)
Works every time! :D My tip to Stackoverflow newbies, upvote the answers that help you. Because there will come a time when you will experience the same problem and you'd know what answer did help you when you first encountered such problem.Regulable
C
3
  1. Install plugin again. Command:

    fastlane add_plugin firebase_app_distribution
    

more info: https://firebase.google.com/docs/app-distribution/ios/distribute-fastlane

  1. If instillation does not help try to run

    bundle install
    
  2. And the run your lane.

Celestial answered 30/8, 2020 at 16:5 Comment(2)
I started experiencing this issue after updating fastlane. Reinstalling the plugin seemed to work for me.Chippy
This step worked for me but required moving the Gemfile.lock file first.Bathometer
I
1

Probably, Fastlane is not up to date. Might need to check fastlane version and update it

bundle update fastlane
Izzy answered 4/3, 2021 at 0:17 Comment(0)
S
0

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.

Saxon answered 31/10, 2022 at 14:12 Comment(0)
E
0

Use this cmd to add the firebase_app_distribution plugin if you are using Fastlane.

bundle exec fastlane add_plugin firebase_app_distribution 
Exobiology answered 19/1, 2024 at 10:16 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.