Logo

dev-resources.site

for different kinds of informations.

Unable to use Fastlane on macOS Monterey 12.1

Published at
12/27/2021
Categories
reactnative
android
fastlane
Author
pearlzsquare
Categories
3 categories in total
reactnative
open
android
open
fastlane
open
Author
12 person written this
pearlzsquare
open
Unable to use Fastlane on macOS Monterey 12.1

TL;DR

These are the steps that solved it for me:

  1. Install rvm using curl -sSL https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable
  2. Reload terminal
  3. Upgrade xcode to latest version
  4. Run rvm install ruby-2.7
  5. Run rvm use ruby-2.7.5
  6. Run bundle update
  7. Fastlane should work as expected

Steps explained

Below I noted detailed error messages and solutions:

We use Fastlane to help Android build on our React Native project. After upgrading my macOS to Monterey 12.1, my bundle exec fastlane commands no longer work, and I was prompted to update my bundler. But when I ran bundle update, I got this error:

An error occurred while installing unf_ext (0.0.7.7), and Bundler cannot continue.
Make sure that `gem install unf_ext -v '0.0.7.7' --source 'https://rubygems.org/'` succeeds before bundling.
Enter fullscreen mode Exit fullscreen mode

However, running the suggested command didn't work. After digging around, I found that I needed to upgrade my ruby version to v2.7, for which I ended up using rvm. Note that after installing rvm, the rvm commands won't be available until the terminal has been restarted.

Then, when I first used rvm install ruby-2.7, it wasn't successful due to this error Error running '__rvm_make -j16'. After checking the 'make.log' file, I found this error, use of undeclared identifier RUBY_FUNCTION_NAME_STRING. Updating my xcode to the latest version ended up getting rid of the error.

Finally, I was able to use ruby v2.7.5 with rvm use ruby-2.7.5. (You can check that your ruby version is successfully updated using ruby -v). And bundle update ran successfully and my Fastlane commands started working as expected.

Hopefully this post can be of help to people who're searching for solutions to make Fastlane work with macOS Monterey!

fastlane Article's
30 articles in total
Favicon
From days to minutes: Build and publish React Native apps using Fastlane and Github Actions
Favicon
[Boost]
Favicon
The Ultimate Guide to Automating Android APK Builds and Firebase Distribution with Fastlane 🚀
Favicon
From Manual to Automatic: The Magic of CI/CD Pipelines! 🤯
Favicon
Protegendo credenciais em automatização de builds no Fastlane com Variáveis de Ambiente
Favicon
GUI for fastlane?
Favicon
Steps to Add and Upload testflight Using Fastlane
Favicon
Simplifying Flutter Deployment with FastLane
Favicon
🚀 Added new YouTube series on "Flutter CI/CD with GitLab and Fastlane" !
Favicon
Automate publishing your android app to Google Play Store with Fastlane and Github Actions
Favicon
GitHub Actions CI/CD for Flutter Fastlane (iOS) with possible mistakes
Favicon
Criando uma conta e configurando um projeto no CodeMagic
Favicon
Automatically add new devices to the Apple Developer Portal (GitHub Actions & Fastlane)
Favicon
Fastlane: 深入浅出一看你就懂
Favicon
Fastlane: iOS 和 Android 的自动化构建工具
Favicon
Fastlane with React Native — Part-1
Favicon
Deploy iOS Application to AppCenter via Github Actions (Manual Code SignIn)
Favicon
Single point versioning with Fastlane for React Native
Favicon
Unable to use Fastlane on macOS Monterey 12.1
Favicon
Automating Flutter App Versioning Using Fastlane Plugin
Favicon
How To Automate App Releases using Fastlane and SemVer for Hybrid Applications
Favicon
Building and Deploying Flutter Apps from CI with Fastlane: How to Reuse Code Efficiently
Favicon
How to run Fastlane and GitLab with AppStore Connect API
Favicon
Automating mobile application deployments using Fastlane and CI/CD tools
Favicon
React Native e2e tests and Automatic Deploys (Detox + Fastlane + CircleCI)
Favicon
Deploy React Native app on Playstore with Fastlane and Github Actions ( 1 / 2 )
Favicon
Deploy React Native app on Playstore with Fastlane and Github Actions ( 2 / 2 )
Favicon
CI/CD in iOS Development
Favicon
Como configurar Fastlane para Firebase App Distribution (Android e iOS)
Favicon
Flutter + Fastlane + Github Actions

Featured ones: