Skip to content

Commit 995b302

Browse files
Update gptdriverscript.yml
1 parent 791c456 commit 995b302

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/gptdriverscript.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ jobs:
5757
ls -R . # List contents recursively from the current working directory
5858
echo "-------------------------------------------------------------"
5959
echo "Attempting to build the SDK framework..."
60-
# CORRECTED: Removed 'Branch-SDK/' from the project path
6160
xcodebuild build -project BranchSDK.xcodeproj \
6261
-scheme BranchSDK \
6362
-configuration Debug \
@@ -98,11 +97,17 @@ jobs:
9897
FRAMEWORK_SEARCH_PATHS="$(SRCROOT)/Frameworks" \
9998
# You might also need LD_RUNPATH_SEARCH_PATHS if it's an embedded framework
10099
# LD_RUNPATH_SEARCH_PATHS="@loader_path/../Frameworks"
100+
101+
echo "--- Listing contents of the app's build output directory for debugging ---"
102+
# List the contents of the 'build' directory relative to the app's repo root
103+
ls -R "${{ github.workspace }}/ios-app-repo/build/" || true # '|| true' prevents step from failing if dir doesn't exist
104+
echo "-------------------------------------------------------------"
101105
working-directory: ./ios-app-repo # Run xcodebuild from the App's checkout directory
102106

103107
# --- Step 7: Echo the location of the generated .app bundle ---
104108
- name: Echo .app bundle location
105109
run: |
110+
# Renamed from APK_PATH to APP_PATH for iOS clarity
106111
APP_PATH="./ios-app-repo/build/Debug-iphonesimulator/BranchLinkSimulator.app"
107112
echo "Generated .app bundle location: $APP_PATH"
108113
@@ -111,6 +116,8 @@ jobs:
111116
uses: actions/upload-artifact@v4
112117
with:
113118
name: BranchLinkSimulator-iOS-Debug-Build
119+
# Path uses the new APP_PATH variable if you decide to define it globally,
120+
# or simply the direct path as shown.
114121
path: ./ios-app-repo/build/Debug-iphonesimulator/BranchLinkSimulator.app
115122

116123
# --- Step 9: Upload and run tests on GPTDriver service. ---
@@ -119,6 +126,7 @@ jobs:
119126
# Ensure the script is executable
120127
chmod +x ./branch-ios-sdk-repo/.github/gptdriverrunscript.sh
121128
# Execute the script, passing the .app path and platform
129+
# Uses the APP_PATH variable defined in Step 7
122130
bash ./branch-ios-sdk-repo/.github/gptdriverrunscript.sh ./ios-app-repo/build/Debug-iphonesimulator/BranchLinkSimulator.app ios
123131
env:
124132
API_ORG_KEY: ${{ secrets.MOBILEBOOST_API_ORG_KEY }}

0 commit comments

Comments
 (0)