Post

Replies

Boosts

Views

Activity

Reply to How to upload .ipa files to external services with XCode Cloud?
I got it working - turned out I needed to use one of the signed app paths, in my case CI_DEVELOPMENT_SIGNED_APP_PATH. The IPA is located within that directory, named .ipa. Here's the updated script: if [[ $CI_XCODEBUILD_ACTION = "archive" ]]; then ipaFileName="<app name>Build${CI_BUILD_NUMBER}.ipa" if [[ $CI_WORKFLOW = "ArchiveAndDistribute" ]]; then cd $CI_DEVELOPMENT_SIGNED_APP_PATH # add build number to file name for identification purposes mv <app name>.ipa $ipaFileName curl -u "$BROWSERSTACK_USERID:$BROWSERSTACK_APIKEY" -X POST "https://api-cloud.browserstack.com/app-live/upload" -F "file=@$ipaFileName" curl -u "$BROWSERSTACK_USERID:$BROWSERSTACK_APIKEY" -X POST "https://api-cloud.browserstack.com/app-automate/upload" -F "file=@$ipaFileName" elif [[ $CI_WORKFLOW = "Release build" ]]; then cd $CI_APP_STORE_SIGNED_APP_PATH mv MyAmfam.ipa $ipaFileName curl -u "$BROWSERSTACK_USERID:$BROWSERSTACK_APIKEY" -X POST "https://api-cloud.browserstack.com/app-live/upload" -F "file=@$ipaFileName" curl -u "$BROWSERSTACK_USERID:$BROWSERSTACK_APIKEY" -X POST "https://api-cloud.browserstack.com/app-automate/upload" -F "file=@$ipaFileName" fi fi
Feb ’24