From b0dff239f922fd84907b5ee4012e8b623c19fefd Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Mon, 10 Jun 2019 18:25:44 +0300 Subject: [PATCH 1/3] 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 From 27a29b573fd63cd2cbf94310df558da8aba68887 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Tue, 11 Jun 2019 12:48:30 +0300 Subject: [PATCH 2/3] rename ios setup script --- ...elopment_environment.sh => setup_project_environment.sh} | 6 ++++++ 1 file changed, 6 insertions(+) rename xcode/aux_scripts/{setup_development_environment.sh => setup_project_environment.sh} (93%) diff --git a/xcode/aux_scripts/setup_development_environment.sh b/xcode/aux_scripts/setup_project_environment.sh similarity index 93% rename from xcode/aux_scripts/setup_development_environment.sh rename to xcode/aux_scripts/setup_project_environment.sh index 042a720..6815645 100644 --- a/xcode/aux_scripts/setup_development_environment.sh +++ b/xcode/aux_scripts/setup_project_environment.sh @@ -5,22 +5,28 @@ 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 From 597205e19c33c35f74057fa66f2977e82ff1f627 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Tue, 11 Jun 2019 15:06:03 +0300 Subject: [PATCH 3/3] install code signing as well --- xcode/aux_scripts/setup_project_environment.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/xcode/aux_scripts/setup_project_environment.sh b/xcode/aux_scripts/setup_project_environment.sh index 6815645..81a81c2 100644 --- a/xcode/aux_scripts/setup_project_environment.sh +++ b/xcode/aux_scripts/setup_project_environment.sh @@ -8,7 +8,8 @@ cd ${PROJECT_PATH} bundle install -# install Homebrew +# Install Homebrew + if [[ $(command -v brew) == "" ]]; then # Prevent "Press RETURN to continue or any other key to abort" message when installing Homebrew @@ -29,4 +30,15 @@ bundle exec pod install # Install carthage dependencies -carthage bootstrap --platform iOS \ No newline at end of file +carthage bootstrap --platform iOS + +case $2 in + --InstallDevelopmentCodeSigning) + # Install certificates & provision profiles for development + + cd ${PROJECT_PATH}/fastlane + + bundle exec fastlane SyncCodeSigning + ;; +esac +