Skip to main content

Posts

ERROR FIX(React Native): Installing Ruby Gems, error Your Ruby version is 2.6.8 but your Gemfile specified >= 2.6.10

Fixing React Native iOS Build Errors If you're encountering the following errors while building your React Native project: ERROR FIX: Installing Ruby Gems, error Your Ruby version is 2.6.8 but your Gemfile specified >= 2.6.10, error Looks like your 10S environment is not properly set. Please go to React Native Environment Setup and follow the React Native CLI QuickStart guide for macOS and iOS. This issue is occurring due to a Ruby version mismatch. To resolve it, follow these steps: Step 1: Install rbenv using Homebrew brew install rbenv ruby-build If Homebrew is not installed, you can install it from the Homebrew website . Use the following commands to install Homebrew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/<your username>/.zprofile eval "$(/usr/local/bin...
Recent posts

Setup Mac Machine for React Native development

Setting Up a Mac Machine for React Native Development React Native is a popular framework for building mobile apps using JavaScript and React. To get started with React Native development on your Mac machine, follow these steps: Setup iOS Environment Install Xcode: You can install Xcode from the App Store . If you need a specific version, refer to this stack overflow link . Open Xcode and install any required tools. Install Homebrew (which also installs Command Line Tools): /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Then set the path: (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/<your username>/.zprofile eval "$(/usr/local/bin/brew shellenv)" To check if the path is set correctly: vi ~/.zprofile Install Node using Homebrew: ...