6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit a830756e
Changed files
azure/templates/build-ios.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
Diff
diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index 32e8de82..85873b15 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -1,6 +1,7 @@
variables:
- name: cppwd
- name: flavor
+ value: releasetest
pool:
vmImage: 'macOS-14'
@@ -73,20 +74,22 @@ steps:
targetFolder: '$(Build.SourcesDirectory)/comwell_key_app/ios/Frameworks'
flattenFolders: true
# Build the iOS application
+ # Generate the iOS project files using Flutter with the specified flavor
- task: FlutterCommand@0
displayName: "Build Flutter iOS project"
inputs:
projectDirectory: '$(Build.SourcesDirectory)/comwell_key_app'
- arguments: 'build ios --no-codesign --flavor=$("releasetest") --build-name=1.0.0 --build-number=1'
+ arguments: 'build ios --no-codesign --flavor=$(flavor) --build-name=1.0.0 --build-number=1'
+ # Use Xcode to build and sign the iOS application using the xcworkspace
- task: Xcode@5
displayName: "Code Sign ipa for Distribution"
inputs:
actions: "build"
- scheme: "Runner"
+ scheme: "$(flavor)" # Ensure this uses the correct scheme
sdk: "iphoneos"
configuration: "Release"
- xcWorkspacePath: "ios/Runner.xcworkspace"
+ xcWorkspacePath: "$(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcworkspace"
xcodeVersion: "default"
packageApp: true
signingOption: "manual"