Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
Xcode Cloud failed to install brew?
You can use gem bundler in ci_post_clone.sh
# !/bin/sh
cd ..
echo ">>> SETUP ENVIRONMENT"
echo 'export GEM_HOME=$HOME/gems' >>~/.bash_profile
echo 'export PATH=$HOME/gems/bin:$PATH' >>~/.bash_profile
export GEM_HOME=$HOME/gems
export PATH="$GEM_HOME/bin:$PATH"
echo ">>> INSTALL BUNDLER"
gem install bundler --install-dir $GEM_HOME
echo ">>> INSTALL DEPENDENCIES"
bundle install
echo ">>> INSTALL PODS"
bundle exec pod install
You also create Gemfile same level with ci_scripts folder
in Gemfile
source "https://rubygems.org"
gem 'cocoapods'