ryuryu1010
@ryuryu1010

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

FirebaseでAndroid Fastlane失敗する

ReactNativeでFastlaneを使用してFirebaseにuploadしたいと思っています。

firebase_app_distributionのところで失敗します。
bundle exec fastlane distributeSTでコマンドを実行しています。
projectでrubyは2.7.5を使用していますが、vendorのrubyのversionは2.7.0です。
vendor側は最後の数字が0になるそうです。

何が原因なのでしょうか?

Fastfile
fastlane_require 'dotenv'

before_all do
  Dotenv.overload('.env')
end

default_platform(:android)

platform :android do
 desc "Firebase Staging"
  lane :distributeSTG do
    gradle(task: "clean assembleRelease" ,flags: "--stacktrace")
    firebase_app_distribution(
      app: ENV["FIREBASE_APP_ID"],
      release_notes_file: "fastlane/changelog.txt",
      groups_file: "fastlane/groups.txt",
      service_credentials_file: ENV["FIREBASE_LOGIN_CREDENTIALS"],
      firebase_cli_token:ENV["FIREBASE_TOKEN"]
    )
  end
end

Error内容

bundler: failed to load command: fastlane (/Users/username/Desktop/project/project/android/vendor/bundle/ruby/2.7.0/bin/fastlane)
Traceback (most recent call last):
        51: from /Users/username/.rbenv/versions/2.7.5/bin/bundle:25:in `<main>'
        50: from /Users/username/.rbenv/versions/2.7.5/bin/bundle:25:in `load'
        49: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/exe/bundle:36:in `<top (required)>'
        48: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
        47: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/exe/bundle:48:in `block in <top (required)>'
        46: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/cli.rb:25:in `start'
        45: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        44: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/cli.rb:31:in `dispatch'
        43: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        42: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        41: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        40: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/cli.rb:486:in `exec'
        39: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/cli/exec.rb:23:in `run'
        38: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/cli/exec.rb:58:in `kernel_load'
        37: from /Users/username/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.22/lib/bundler/cli/exec.rb:58:in `load'
        36: from /Users/username/Desktop/project/project/android/vendor/bundle/ruby/2.7.0/bin/fastlane:25:in `<top (required)>'
        35: from /Users/username/Desktop/project/android/vendor/bundle/ruby/2.7.0/bin/fastlane:25:in `load'
        34: from 

...

/Users/username/Desktop/project/project/android/vendor/bundle/ruby/2.7.0/gems/faraday-1.10.2/lib/faraday/middleware.rb:19:in `block in call'
/Users/username/Desktop/project/project/android/vendor/bundle/ruby/2.7.0/gems/faraday-1.10.2/lib/faraday/response/raise_error.rb:20:in `on_complete': \e[31m[!] the server responded with status 403\e[0m (Faraday::ForbiddenError)
0

No Answers yet.

Your answer might help someone💌