6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 32463d36
Changed files
azure/templates/build-ios.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-)
Diff
diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index d7f46ef6..7f6ff2f4 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -35,6 +35,25 @@ steps:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: 'CP_Test.mobileprovision'
+ # Copy SeosMobileKeysSDK to the Xcode project directory
+ - task: CopyFiles@2
+ displayName: "Copy SeosMobileKeysSDK framework to Xcode project"
+ inputs:
+ sourceFolder: '$(Build.SourcesDirectory)/mobilekeys_sdk_plugin/XCFrameworks/'
+ contents: 'SeosMobileKeysSDK.xcframework/**'
+ targetFolder: '$(Build.SourcesDirectory)/comwell_key_app/ios/Frameworks/'
+ flattenFolders: false
+
+ - 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
# Install Flutter SDK
- task: FlutterInstall@0
displayName: "Install Flutter SDK"
@@ -80,7 +99,7 @@ steps:
sourceFolder: '$(Build.SourcesDirectory)/mobilekeys_sdk_plugin/XCFrameworks/'
contents: 'SeosMobileKeysSDK.xcframework/**'
targetFolder: '$(Build.SourcesDirectory)/comwell_key_app/ios/Frameworks/'
- flattenFolders: true
+ flattenFolders: false
- task: Bash@3
displayName: "Ensure SeosMobileKeysSDK is linked"