1#!/bin/bash 2set -ex -o pipefail 3 4if ! [ "$IOS_PLATFORM" == "SIMULATOR" ]; then 5 exit 0 6fi 7 8echo "" 9echo "DIR: $(pwd)" 10PROJ_ROOT=/Users/distiller/project 11cd ${PROJ_ROOT}/ios/TestApp 12# install fastlane 13sudo gem install bundler && bundle install 14# run the ruby build script 15if ! [ -x "$(command -v xcodebuild)" ]; then 16 echo 'Error: xcodebuild is not installed.' 17 exit 1 18fi 19ruby ${PROJ_ROOT}/scripts/xcode_build.rb -i ${PROJ_ROOT}/build_ios/install -x ${PROJ_ROOT}/ios/TestApp/TestApp.xcodeproj -p ${IOS_PLATFORM} 20