6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 3b3b2d4f

AuthorMikkel Thygesen<mikkelet@gmail.com>
Date2026-03-03 15:20:35 +0100
Devops: updated pipeline

Changed files

azure/templates/build-ios.yml                | 66 ++++++----------------------
 comwell_key_app/ios/ExportOptionsStage.plist |  4 +-
 2 files changed, 15 insertions(+), 55 deletions(-)

Diff

diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index c795e608..7ad682b7 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -38,61 +38,21 @@ steps:
flutter config --enable-swift-package-manager
displayName: "Enable Swift Pacakge Manager"
-# Debug: Verify the Develop scheme configuration
- script: |
- echo "=== Checking Xcode schemes ==="
- ls -la $(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/
- echo ""
- echo "=== Develop.xcscheme ArchiveAction ==="
- cat $(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Develop.xcscheme | grep -A2 "ArchiveAction"
- echo ""
- echo "=== Checking Release-Develop bundle ID in project.pbxproj ==="
- grep -A30 "Release-Develop" $(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj | grep "PRODUCT_BUNDLE_IDENTIFIER"
- echo ""
- echo "=== Flutter build flavor variable ==="
- echo "Flavor: $(flavor)"
- displayName: 'Debug: Verify Xcode configuration'
+ flutter build ipa --flavor stage --release --no-codesign
+ displayName: "Enable Swift Pacakge Manager"
-- task: FlutterBuild@0
+- script: |
+ -workspace ios/Runner.xcworkspace
+ -scheme Stage
+ -archivePath build/ios/archive/Runner.xcarchive
+ archive
displayName: "Build app"
- inputs:
- buildNumber: "$(Build.BuildId)"
- target: "ios"
- buildFlavour: $(flavor)
- projectDirectory: "$(Build.SourcesDirectory)/comwell_key_app"
- iosCodesign: false
- exportOptionsPlist: "$(Build.SourcesDirectory)/comwell_key_app/ios/$(iosExportOptionsPlist)"
- verboseMode: true
-
-- task: Xcode@5
- displayName: "Archive app"
- inputs:
- actions: "archive"
- scheme: "$(iosScheme)"
- configuration: "$(iosConfiguration)"
- sdk: "iphoneos"
- xcWorkspacePath: "$(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcworkspace"
- packageApp: true
- args: "-verbose"
- signingOption: "manual"
- signingIdentity: "$(APPLE_CERTIFICATE_SIGNING_IDENTITY)"
- provisioningProfileUuid: "$(APPLE_PROV_PROFILE_UUID)"
-- script: ls -lR comwell_key_app/build/ios/ipa
- displayName: 'List IPA output directory'
-
-- task: PublishBuildArtifacts@1
- inputs:
- PathtoPublish: 'comwell_key_app/build/ios/ipa'
- ArtifactName: 'ios-ipa'
- publishLocation: 'Container'
+- script: |
+ xcodebuild -exportArchive
+ -archivePath build/ios/archive/Runner.xcarchive
+ -exportOptionsPlist ios/ExportOptionsStage.plist
+ -exportPath output
+ displayName: "Archive"
-- task: AppStoreRelease@1
- inputs:
- releaseTrack: 'TestFlight'
- appIdentifier: $(iosBundleId)
- serviceEndpoint: "Apple"
- appType: 'iOS'
- ipaPath: 'comwell_key_app/build/ios/ipa/*.ipa'
- shouldSkipWaitingForProcessing: true
- shouldSkipSubmission: true
diff --git a/comwell_key_app/ios/ExportOptionsStage.plist b/comwell_key_app/ios/ExportOptionsStage.plist
index 62e2c355..bd4ce5cf 100644
--- a/comwell_key_app/ios/ExportOptionsStage.plist
+++ b/comwell_key_app/ios/ExportOptionsStage.plist
@@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>method</key>
- <string>app-store</string>
+ <string>app-store-connect</string>
<key>teamID</key>
- <string>8RNV6AX4ZL</string> <!-- Replace with your actual Team ID if different -->
+ <string>8RNV6AX4ZL</string>
<key>signingStyle</key>
<string>manual</string>
<key>provisioningProfiles</key>