6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 4d438bc5
Changed files
azure/templates/build-ios.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
Diff
diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index 7a0e1f7d..aa8126b5 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -82,6 +82,18 @@ steps:
targetFolder: '$(Build.SourcesDirectory)/comwell_key_app/ios/Frameworks/'
flattenFolders: false
+# Add a Run Script phase to ensure the framework is linked
+ - task: Bash@3
+ displayName: "Ensure SeosMobileKeysSDK is linked"
+ inputs:
+ targetType: 'inline'
+ script: |
+ cd $(Build.SourcesDirectory)/comwell_key_app/ios
+ if [ ! -d "Frameworks/SeosMobileKeysSDK.xcframework" ]; then
+ echo "Error: SeosMobileKeysSDK.xcframework not found!"
+ exit 1
+ fi
+
# Ensure the custom XCFramework is added to the Xcode project
- task: Xcode@5
displayName: "Integrate XCFramework into Xcode project"
@@ -94,9 +106,8 @@ steps:
xcodeVersion: "default"
packageApp: false
args: |
- -target Runner
- -project $(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcodeproj
- -destination generic/platform=iOS
+ OTHER_SWIFT_FLAGS="$(inherited) -framework SeosMobileKeysSDK"
+ FRAMEWORK_SEARCH_PATHS="$(Build.SourcesDirectory)/comwell_key_app/ios/Frameworks"
# Build the iOS application
- task: FlutterCommand@0