Skip to content

Instantly share code, notes, and snippets.

@twhitt14
Last active November 25, 2022 09:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twhitt14/ba83968edcadb6c7d49a0801796bcc86 to your computer and use it in GitHub Desktop.
Save twhitt14/ba83968edcadb6c7d49a0801796bcc86 to your computer and use it in GitHub Desktop.
LOGFILE="$HOME/Desktop/xcode-pre-action.txt" ;
print_pwd () { echo "pwd: $(pwd)" >> $LOGFILE ; }
bump_version () { agvtool bump ; }
echo "" > $LOGFILE ;
echo "Build Pre-Action" >> $LOGFILE
print_pwd ;
echo "PROJECT_DIR: $PROJECT_DIR" >> $LOGFILE ;
echo "cd into project directory" >> $LOGFILE ;
cd "$PROJECT_DIR" ;
print_pwd ;
bump_version 2>> $LOGFILE ;
echo "Done" >> $LOGFILE ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment