fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps
https://fastlane.tools
MIT License
39.3k stars 5.67k forks source link

Can't able to run fastlane init inside android folder. #21129

Open renishdeveloper opened 1 year ago

renishdeveloper commented 1 year ago

Issue Description

I'm setting up the CI/CD pipeline for my React Native project and doing fastlane init inside the android folder, but it shows the below error

/Library/Ruby/Site/2.6.0/rubygems.rb:263:in find_spec_for_exe': can't find gem fastlane (>= 0.a) with executable fastlane (Gem::GemNotFoundException) from /Library/Ruby/Site/2.6.0/rubygems.rb:282:inactivate_bin_path' from /usr/local/bin/fastlane:23:in `

'

Command executed

fastlane init

Complete output when running fastlane, including the stack trace and command used

/Library/Ruby/Site/2.6.0/rubygems.rb:263:in find_spec_for_exe': can't find gem fastlane (>= 0.a) with executable fastlane (Gem::GemNotFoundException) from /Library/Ruby/Site/2.6.0/rubygems.rb:282:inactivate_bin_path' from /usr/local/bin/fastlane:23:in `

'

Environment

» fastlane env /Library/Ruby/Site/2.6.0/rubygems.rb:263:in find_spec_for_exe': can't find gem fastlane (>= 0.a) with executable fastlane (Gem::GemNotFoundException) from /Library/Ruby/Site/2.6.0/rubygems.rb:282:inactivate_bin_path' from /usr/local/bin/fastlane:23:in `

'

fastlane-bot commented 1 year ago

It seems like you have not included the output of fastlane env To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env :+1: