Last updated
Last updated
Choose your organization
Choose the project
Choose 'DevOps' from side panel
Under 'Cloud Build' go to 'Config'
Set up config to link with GitHub.
Be sure to manually choose unity version in 'Basic Info'
In your Unity Project Settings, make sure Build number is set to 0, so Cloud Build will automatically auto-increment it.
In your Unity Project, add this bash script to Assets>Editor
#!/bin/bash echo "Uploading IPA to Appstore Connect..." #Path is "/BUILD_PATH/<ORG_ID>.<PROJECT_ID>.<BUILD_TARGET_ID>/.build/last/<BUILD_TARGET_ID>/build.ipa" path="${UNITY_PLAYER_PATH}" 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
Back in Unity Dashboard in Cloud Build Config, go to the 'Advanced Options' tab. Go to Edit.
In the 'Post Build Script Path' put 'Assets/Editor/post-build-push-ipa-appstore.bash'
Turn 'On' the 'Post Build Script Fails' switch, so you know if you have an issue.
Save.
Go to 'Environment Variables' and create the following variables with appropriate values: