6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit b352137d
Changed files
azure/templates/build-ios.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
Diff
diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index 339426fe..c6fdee7f 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -63,6 +63,17 @@ steps:
pubGet: true
extraArgs: --no-fatal-infos --no-fatal-warnings
+# Clean the Flutter and iOS build directories
+ - task: Bash@3
+ displayName: "Clean Build Directories"
+ inputs:
+ targetType: 'inline'
+ script: |
+ flutter clean
+ cd $(Build.SourcesDirectory)/comwell_key_app/ios
+ xcodebuild clean -workspace Runner.xcworkspace -scheme "$(flavor)"
+
+
# Install CocoaPods dependencies
- task: Bash@3
displayName: "Install CocoaPods dependencies"
@@ -93,6 +104,12 @@ steps:
echo "Error: SeosMobileKeysSDK.xcframework not found!"
exit 1
fi
+ - task: Bash@3
+ displayName: "Update Xcode Build Settings"
+ inputs:
+ targetType: 'inline'
+ script: |
+ plutil -replace "FRAMEWORK_SEARCH_PATHS" -string "\"$(Build.SourcesDirectory)/comwell_key_app/ios/Frameworks\"" $(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj
# Ensure the custom XCFramework is added to the Xcode project
- task: Xcode@5
@@ -101,7 +118,7 @@ steps:
actions: "build"
scheme: "$(flavor)" # Make sure to use the correct scheme that includes the custom XCFramework
sdk: "iphoneos"
- configuration: "Release"
+ configuration: "release"
xcWorkspacePath: "$(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcworkspace"
xcodeVersion: "default"
packageApp: true