6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 1e3c45c1

AuthorJakob Højgård<141220340+jaxthedwarf@users.noreply.github.com>
Date2024-08-26 20:52:44 +0200
Update build-ios.yml for Azure Pipelines

Changed files

azure/templates/build-ios.yml | 45 +++++--------------------------------------
 1 file changed, 5 insertions(+), 40 deletions(-)

Diff

diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index 7f6ff2f4..958977a1 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -35,25 +35,6 @@ 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"
@@ -63,11 +44,11 @@ steps:
version: 'latest'
# Run Flutter diagnostics
- - task: FlutterCommand@0
- displayName: "Run Flutter diagnostics"
- inputs:
- projectDirectory: '.'
- arguments: 'doctor -v'
+# - task: FlutterCommand@0
+# displayName: "Run Flutter diagnostics"
+# inputs:
+# projectDirectory: '.'
+# arguments: 'doctor -v'
# Run custom Pigeon script
- task: ShellScript@2
@@ -112,22 +93,6 @@ steps:
exit 1
fi
- # Ensure the custom XCFramework is added to the Xcode project
- - task: Xcode@5
- displayName: "Integrate XCFramework into Xcode project"
- inputs:
- actions: "build"
- scheme: "$(flavor)" # Use the correct scheme that includes the custom XCFramework
- sdk: "iphoneos"
- configuration: "Release"
- xcWorkspacePath: "$(Build.SourcesDirectory)/comwell_key_app/ios/Runner.xcworkspace"
- xcodeVersion: "default"
- packageApp: false
- args: |
- -disableBasedOnDependencyAnalysis
- SWIFT_INCLUDE_PATHS="$(Build.SourcesDirectory)/comwell_key_app/ios/Frameworks/SeosMobileKeysSDK.xcframework"
- FRAMEWORK_SEARCH_PATHS="$(Build.SourcesDirectory)/comwell_key_app/ios/Frameworks"
-
# Build the iOS application
- task: FlutterCommand@0
displayName: "Build Flutter iOS project"