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
Post
Replies
Boosts
Views
Activity
I figured out the issue - there was a custom Link struct in the app I'm working on that takes precedence. Using SwiftUI.Link fixed the issue.
Further explanation here: https://stackoverflow.com/questions/71698728/textfield-viewmodifier-not-conforming-to-viewmodifier
I found a fix for this issue - I needed to remove the view from the parent when coming back to the main screen, like so:
hostingController.willMove(toParent: nil)
hostingController.view.removeFromSuperview()
hostingController.removeFromParent()