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'
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: