Created
June 3, 2022 02:29
-
-
Save SiarheiPilat/2e619440ba8c08a3c474bbfced0b96b9 to your computer and use it in GitHub Desktop.
Automates cloud build upload to iTunes Connect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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