From b0dff239f922fd84907b5ee4012e8b623c19fefd Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Mon, 10 Jun 2019 18:25:44 +0300 Subject: [PATCH] add setup script for development environment --- .../setup_development_environment.sh | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 xcode/aux_scripts/setup_development_environment.sh diff --git a/xcode/aux_scripts/setup_development_environment.sh b/xcode/aux_scripts/setup_development_environment.sh new file mode 100644 index 0000000..042a720 --- /dev/null +++ b/xcode/aux_scripts/setup_development_environment.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +PROJECT_PATH=$1 + +cd ${PROJECT_PATH} + +# Install ruby dependencies (cocoapods, fastlane, etc.) +bundle install + +# install Homebrew +if [[ $(command -v brew) == "" ]]; then + # Prevent "Press RETURN to continue or any other key to abort" message when installing Homebrew + export CI=true + + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +fi + +# Install brew dependencies (carthage, etc.) +brew bundle + +# Install pods dependencies +bundle exec pod repo update +bundle exec pod install + +# Install carthage dependencies +carthage bootstrap --platform iOS \ No newline at end of file