6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 684761e0
Changed files
azure/templates/build-ios.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
Diff
diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index 73a0d3e7..e5bb7e9c 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -75,6 +75,23 @@ steps:
flattenFolders: true
# Build the iOS application
# Generate the iOS project files using Flutter with the specified flavor
+ - task: Bash@3
+ displayName: "Set Framework Search Path"
+ inputs:
+ targetType: 'inline'
+ script: |
+ # Define the path to the Xcode project
+ XCODE_PROJECT_PATH="$(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcodeproj"
+
+ # Define the framework search path you want to add
+ FRAMEWORK_SEARCH_PATH="$(PROJECT_DIR)/Frameworks"
+
+ # Use 'plutil' to modify the project.pbxproj file to include the framework search path
+ plutil -replace 'targets.Runner.buildSettings.Framework Search Paths' -json "[\"$(FRAMEWORK_SEARCH_PATH)\"]" "$XCODE_PROJECT_PATH/project.pbxproj"
+
+ # Verify the change
+ echo "Updated Framework Search Paths:"
+ plutil -p "$XCODE_PROJECT_PATH/project.pbxproj" | grep 'Framework Search Paths'
- task: FlutterCommand@0
displayName: "Build Flutter iOS project"