6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit bfbe550a
Changed files
azure/templates/build-ios.yml | 46 ++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 18 deletions(-)
Diff
diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index ca0fa5b2..bb68b9e4 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -23,6 +23,7 @@ steps:
displayName: Install Apple Certificate
inputs:
certSecureFile: 'comwell_cert_jun2025.p12'
+ certPwd: ''
keychain: 'temp'
# Install Apple provisioning profile
@@ -45,9 +46,9 @@ steps:
flutter config --enable-swift-package-manager
displayName: "Enable Swift Pacakge Manager"
-- script: |
- sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
- displayName: 'Select XCode version'
+# - script: |
+# sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
+# displayName: 'Select XCode version'
- task: FlutterBuild@0
displayName: "Build app"
@@ -58,24 +59,33 @@ steps:
debugMode: false
profileMode: false
iosCodesign: true
+ signingIdentity: "$(APPLE_CERTIFICATE_SIGNING_IDENTITY)"
+ provisioningProfileUuid: "$(APPLE_PROV_PROFILE_UUID)"
projectDirectory: "$(Build.SourcesDirectory)/comwell_key_app"
-- task: Xcode@5
- displayName: "Archive app"
+
+# (Optional) Publish artifact
+- task: PublishBuildArtifacts@1
inputs:
- actions: "build"
- scheme: "$(iosScheme)" # Make sure to use the correct scheme that includes the custom XCFramework
- configuration: "$(iosConfiguration)"
- sdk: "iphoneos"
- xcWorkspacePath: "$(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcworkspace"
- xcodeVersion: "16"
- xcodeDeveloperDir: '/Applications/Xcode_16.2.app/Contents/Developer'
- exportPath: 'output'
- packageApp: true
- args: "-verbose"
- signingOption: "manual"
- signingIdentity: "$(APPLE_CERTIFICATE_SIGNING_IDENTITY)"
- provisioningProfileUuid: "$(APPLE_PROV_PROFILE_UUID)"
+ PathtoPublish: 'build/ios/ipa'
+ ArtifactName: 'ios-app'
+ publishLocation: 'Container'
+# - task: Xcode@5
+# displayName: "Archive app"
+# inputs:
+# actions: "build"
+# scheme: "$(iosScheme)" # Make sure to use the correct scheme that includes the custom XCFramework
+# configuration: "$(iosConfiguration)"
+# sdk: "iphoneos"
+# xcWorkspacePath: "$(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcworkspace"
+# xcodeVersion: "16"
+# xcodeDeveloperDir: '/Applications/Xcode_16.2.app/Contents/Developer'
+# exportPath: 'output'
+# packageApp: true
+# args: "-verbose"
+# signingOption: "manual"
+# signingIdentity: "$(APPLE_CERTIFICATE_SIGNING_IDENTITY)"
+# provisioningProfileUuid: "$(APPLE_PROV_PROFILE_UUID)"
- task: AppStoreRelease@1