From 024f6f6455206fdb86a69841b0b164089616b419 Mon Sep 17 00:00:00 2001 From: Savsis Date: Mon, 27 Apr 2026 22:03:06 +0500 Subject: [PATCH] Fix app path search in workflow for IPA packaging Update the path for finding the built app and add a fallback search. --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b2d4fe..55b4b96 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,7 @@ jobs: -scheme "$SCHEME" \ -configuration Release \ -sdk iphoneos \ - CONFIGURATION_BUILD_DIR="$RUNNER_TEMP/build" \ + -derivedDataPath "$RUNNER_TEMP/DerivedData" \ CODE_SIGN_IDENTITY="" \ CODE_SIGNING_REQUIRED=NO \ CODE_SIGNING_ALLOWED=NO \ @@ -53,7 +53,10 @@ jobs: - name: Package IPA run: | - APP_PATH=$(find "$RUNNER_TEMP/build" -name "*.app" -type d | grep -v "\.xctest" | head -1) + APP_PATH=$(find "$RUNNER_TEMP/DerivedData/Build/Products" -name "*.app" -type d | grep -v "\.xctest" | grep -v "simulator" | head -1) + if [ -z "$APP_PATH" ]; then + APP_PATH=$(find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d | grep -v "\.xctest" | grep -v "simulator" | head -1) + fi echo "APP_PATH: $APP_PATH" mkdir -p Payload cp -r "$APP_PATH" Payload/