DEV Community

Discussion on: Automatic Versioning for React Native Apps

federazionekoinonie profile image
federazionekoinonie • Edited on

Thank you: this helped me a lot in a project few months ago!

I started a new react-native project with updated versions of softwares, and I faced following issue. When I execute:

fastlane add_plugin increment_version_name increment_version_code load_json

I get this error:

Seems like the plugin is not available on RubyGems, what do you want to do?
Looking for related GitHub issues on fastlane/fastlane...
˜/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/highline-1.7.10/lib/highline.rb:624:in `encode': \e[31m[!] no implicit conversion of Hash into String\e[0m (TypeError)
     from ˜/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/highline-1.7.10/lib/highline.rb:624:in `say'
     . . .
     from ˜/.rbenv/versions/3.0.0/bin/fastlane:23:in '<main>'

Googling a bit I found this:
And effectively I have (now, for this project) ruby 3.0, not 2.6.5 anymore (I thinked was something related to upgrated OS from Mojave to Catalina, or to new Node.js...)
So I 'solved' by downgrading ruby to 2.7.2 and now it works like a charm again!