6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 62d27ce5

AuthorNKL<nikolaj.king@gmail.com>
Date2025-12-08 13:28:07 +0100
Update build-ios.yml

Changed files

azure/templates/build-ios.yml | 47 ++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 44 insertions(+), 3 deletions(-)

Diff

diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index 99093c61..130628f3 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -91,6 +91,9 @@ steps:
echo " Configuration: $(iosConfiguration)"
echo " Bundle ID should be: $(iosBundleId)"
+ # Create output directory
+ mkdir -p "$(Build.SourcesDirectory)/output"
+
xcodebuild archive \
-workspace Runner.xcworkspace \
-scheme "$(iosScheme)" \
@@ -102,14 +105,52 @@ steps:
CODE_SIGN_IDENTITY="$(APPLE_CERTIFICATE_SIGNING_IDENTITY)" \
PROVISIONING_PROFILE_SPECIFIER="$(APPLE_PROV_PROFILE_UUID)" \
DEVELOPMENT_TEAM=8RNV6AX4ZL \
- -allowProvisioningUpdates \
- | tee xcodebuild.log
+ -allowProvisioningUpdates
+
+ echo ""
+ echo "=== Archive created ==="
+ ls -la "$(Build.SourcesDirectory)/output/"
displayName: 'Xcode Archive'
+# Find and list the archive location
+- script: |
+ echo "=== Looking for archive ==="
+ echo "Expected location: $(Build.SourcesDirectory)/output/Runner.xcarchive"
+ ls -la "$(Build.SourcesDirectory)/output/" 2>/dev/null || echo "output directory not found"
+
+ echo ""
+ echo "=== Searching for .xcarchive files ==="
+ find "$(Build.SourcesDirectory)" -name "*.xcarchive" -type d 2>/dev/null | head -5
+
+ echo ""
+ echo "=== Searching in common locations ==="
+ ls -la ~/Library/Developer/Xcode/Archives/ 2>/dev/null || echo "No archives in default location"
+ displayName: 'Debug: Find archive location'
+
# Export IPA
- script: |
+ ARCHIVE_PATH="$(Build.SourcesDirectory)/output/Runner.xcarchive"
+
+ # If not found at expected location, try to find it
+ if [ ! -d "$ARCHIVE_PATH" ]; then
+ echo "Archive not found at expected location, searching..."
+ FOUND_ARCHIVE=$(find "$(Build.SourcesDirectory)" -name "*.xcarchive" -type d 2>/dev/null | head -1)
+ if [ -n "$FOUND_ARCHIVE" ]; then
+ echo "Found archive at: $FOUND_ARCHIVE"
+ ARCHIVE_PATH="$FOUND_ARCHIVE"
+ else
+ echo "ERROR: No archive found!"
+ exit 1
+ fi
+ fi
+
+ echo "Using archive: $ARCHIVE_PATH"
+
+ # Create output directory
+ mkdir -p "$(Build.SourcesDirectory)/output/ipa"
+
xcodebuild -exportArchive \
- -archivePath "$(Build.SourcesDirectory)/output/Runner.xcarchive" \
+ -archivePath "$ARCHIVE_PATH" \
-exportPath "$(Build.SourcesDirectory)/output/ipa" \
-exportOptionsPlist "$(Build.SourcesDirectory)/comwell_key_app/ios/$(iosExportOptionsPlist)" \
-allowProvisioningUpdates