11#! /bin/sh
2+ set -e
23export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
4+ export HOMEBREW_NO_AUTO_UPDATE=1
35export NODE_OPTIONS=--max_old_space_size=8192
46
5- # Install CocoaPods and yarn using Homebrew.
6- brew install cocoapods
7- brew install rbenv ruby-build
8- brew install node@24
9- brew link node@24
10- brew install yarn
7+ # Pinned Ruby for the iOS toolchain. CocoaPods + modern bundler require Ruby >= 3.2;
8+ # Ruby 2.7.x is EOL and breaks against the current Xcode Cloud image (its Homebrew
9+ # Ruby leaks into `bundle exec`, and rubygems.org rejects the old client). 3.3.x is the
10+ # stable, CocoaPods-safe line and satisfies the Gemfile's `ruby ">= 2.6.10"` requirement.
11+ RUBY_VERSION=3.3.6
1112
12- echo " >>> SETUP ENVIRONMENT"
13- echo ' export GEM_HOME=$HOME/gems' >> ~/.bash_profile
14- echo ' export PATH=$HOME/gems/bin:$PATH' >> ~/.bash_profile
15- export GEM_HOME=$HOME /gems
16- export PATH=" $GEM_HOME /bin:$PATH "
13+ # Install the toolchain via Homebrew.
14+ brew install cocoapods rbenv ruby-build node@24 yarn
15+ brew link --overwrite node@24
1716
18- echo " >>> INSTALL BUNDLER"
19- ruby -v
20- rbenv init
21- rbenv install 2.7.8
22- rbenv global 2.7.8
23- eval " $( rbenv init -) "
17+ echo " >>> INSTALL RUBY ${RUBY_VERSION} (rbenv)"
18+ eval " $( rbenv init - sh) "
19+ rbenv install --skip-existing " ${RUBY_VERSION} "
20+ rbenv global " ${RUBY_VERSION} "
21+ rbenv rehash
2422ruby -v
25- gem install bundler --install-dir $GEM_HOME
2623
27- # Install dependencies
24+ echo " >>> INSTALL BUNDLER"
25+ gem install bundler
26+ rbenv rehash
27+ bundle -v
28+
29+ echo " >>> INSTALL DEPENDENCIES"
2830yarn
29- bundle update --bundler
30- yarn bundleinstall
31- yarn podinstall
31+ bundle install
32+ yarn podinstall
0 commit comments