Skip to content

Instantly share code, notes, and snippets.

@fjcaetano
Created November 18, 2021 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjcaetano/40c01ccffed8ebdc08790589c76a37b0 to your computer and use it in GitHub Desktop.
Save fjcaetano/40c01ccffed8ebdc08790589c76a37b0 to your computer and use it in GitHub Desktop.
Manually export an iOS enterprise build
#! /bin/sh
ARCHIVE_PATH="$1"
OUTPUT_PATH="$2"
if [ -z "${ARCHIVE_PATH}" ] || [ -z "${OUTPUT_PATH}" ]; then
echo "Usage: $0 [archive_path] [output_path]"
exit 1
fi
TMP_PATH="/tmp/manual-archive"
mkdir -p "${TMP_PATH}"
cp -R "${ARCHIVE_PATH}/Products/Applications/" "${TMP_PATH}/Payload"
pushd "${TMP_PATH}"
zip -r "App.ipa" .
popd
mkdir -p "${OUTPUT_PATH}"
mv "${TMP_PATH}/App.ipa" "${OUTPUT_PATH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment