Skip to content

Instantly share code, notes, and snippets.

@SiarheiPilat
Created June 3, 2022 02:29
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 SiarheiPilat/2e619440ba8c08a3c474bbfced0b96b9 to your computer and use it in GitHub Desktop.
Save SiarheiPilat/2e619440ba8c08a3c474bbfced0b96b9 to your computer and use it in GitHub Desktop.
Automates cloud build upload to iTunes Connect
#!/bin/bash
echo "Uploading IPA to Appstore Connect..."
# Taken from this great thread: https://forum.unity.com/threads/path-to-the-final-ipa-file.754331/
#Path is "/BUILD_PATH/<ORG_ID>.<PROJECT_ID>.<BUILD_TARGET_ID>/.build/last/<BUILD_TARGET_ID>/build.ipa"
path="$WORKSPACE/.build/last/$TARGET_NAME/build.ipa"
if xcrun altool --upload-app --type ios -f $path -u $ITUNES_USERNAME -p $ITUNES_PASSWORD ; then
echo "Upload IPA to Appstore Connect finished with success"
else
echo "Upload IPA to Appstore Connect failed"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment