message: Optimizing the vcx build for ios to use a target cache
diff: @@ -33,9 +33,18 @@ if [ ! -z "$3" ]; then
  CLEAN_BUILD=$3
  fi
  +BUILD_CACHE=~/.build_libvxc/ioscache
  +mkdir -p ${BUILD_CACHE}
  +
  if [ "$CLEAN_BUILD" = "cleanbuild" ]; then
  cargo clean
  + rm -rf ${BUILD_CACHE}/target
  # cargo update
  +else
  + if [ -d ${BUILD_CACHE}/target ]; then
  + echo "Optimizing iOS build using folder: $(abspath ${BUILD_CACHE}/target)"
  + cp -rfp ${BUILD_CACHE}/target .
  + fi
  fi
  git log -1 > $WORK_DIR/evernym.vcx-sdk.git.commit.log
  @@ -124,6 +133,9 @@ mkdir -p ./target/universal/release
  lipo -create $to_combine -o ./target/universal/release/libvcx.a
  #lipo -create -output ./combined.ios.libvcx.a ./target/universal/release/libvcx.a ./libvcx.previous.a
  +echo "Copying iOS target folder into directory: $(abspath "${BUILD_CACHE}")"
  +cp -rfp ./target ${BUILD_CACHE}
  +
  export OPENSSL_LIB_DIR=$OPENSSL_LIB_DIR_DARWIN
  #cargo test
  