increment_build_number.sh 291 B

1234567
  1. #!/bin/sh
  2. VERSION_XCCONFIG="Moments/Moments/Configurations/BaseTarget.xcconfig"
  3. SED_CMD="s/\\(PRODUCT_VERSION_SUFFIX=\\).*/\\1${CI_BUILD_NUMBER}/" # Make sure setting this environment variable before call script.
  4. sed -e ${SED_CMD} -i.bak ${VERSION_XCCONFIG}
  5. rm -f ${VERSION_XCCONFIG}.bak