hey24sheep / azure-flutter-tasks

Easily build and deploy with latest Flutter build tasks for Azure DevOps Pipelines Tasks
https://marketplace.visualstudio.com/items?itemName=Hey24sheep.flutter
MIT License
89 stars 22 forks source link

[Issue]: Azure Devops Pipeline fail for Flutter iOS app #116

Open komalkhatri08 opened 9 months ago

komalkhatri08 commented 9 months ago

New issue checklist

Task name

Xcode build

Task version

No response

Issue Description

I am trying to build pipeline for my flutter iOS . Below is my yaml file . I have updated my provisioning certificates and p12 certificates. Also on my Xcode the build is success using command - xcodebuild -sdk iphoneos -configuration Release -workspace iOS/Runner.xcworkspace -scheme Runner build -verbose CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM=EG2ML2NW5A

Also tried running flutter build. end up with same issue.

But it does not work in pipeline. I am stuck in this for 5 days.

# trigger:
#   - master
resources:
  repositories:
  - repository: Arch_Skeleton_UI_Mobile
    type: git
    name: ISF-ARCH-SKELETON-LIB/Arch_Skeleton_UI_Mobile  # Replace with the actual name of your Azure DevOps repository
    ref: refs/heads/main
    # trigger:
    #   branches:
    #     include:
    #     - refs/heads/azure-pipelines
stages:
- stage: iOSStage
  pool: 
    vmImage: 'macos-latest'
  dependsOn: []
  displayName: iOS
  jobs:
  - job: iOSJob
    displayName: iOS
    steps: 
    - checkout : Arch_Skeleton_UI_Mobile

    # replace "iosKey" and "yourPwd" with your secure file name and password
    - task: InstallAppleCertificate@2
      displayName: Install certificate
      inputs:
        certSecureFile: 'Certificates.p12'
        certPwd: 'Ericsson@123'
        keychain: 'temp'

    # replace "ios_Profile.mobileprovision" with your secure file name
    - task: InstallAppleProvisioningProfile@1
      displayName: Install provisioning file
      inputs:
        provisioningProfileLocation: 'secureFiles'
        provProfileSecureFile: 'ISF_V2_2024.mobileprovision'

    - task: FlutterInstall@0
      displayName: "Install Flutter SDK"
      inputs:
        mode: 'auto'
        channel: 'stable'
        version: 'latest'

    - task: FlutterCommand@0
      displayName: "Run Flutter diagnostics"
      inputs:
        projectDirectory: '.'
        arguments: 'doctor -v'

    # adjust path to the *.plist file
    - task: FlutterBuild@0
      displayName: "Build application"
      inputs:
        target: ipa
        projectDirectory: '$(System.DefaultWorkingDirectory)/ISFV2/ericsson_mobile_isf'
        extraArgs: --export-method development
   #     exportOptionsPlist: 'ios/Runner/ExportOptions.plist'

    - task: FlutterTest@0
      displayName: "Run unit tests"
      inputs:
        generateCodeCoverageReport: true
        projectDirectory: '$(Build.SourcesDirectory)'

    - task: CopyFiles@2
      displayName: "Copy app to staging directory"
      inputs:
        sourceFolder: '$(Agent.BuildDirectory)'
        contents: '**/ipa/*.ipa'
        targetFolder: '$(Build.StagingDirectory)'
        flattenFolders: true

    - task: PublishBuildArtifacts@1
      displayName: "Publish IPA file"
      inputs:
        PathtoPublish: '$(Build.ArtifactStagingDirectory)'
        ArtifactName: 'IPA'
        publishLocation: 'Container'

Kindly help me with this. Ask me anything else u need .

Environment type (Please select at least one enviroment where you face this issue)

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Mac OS

Relevant log output

2024-02-06T05:56:28.6507140Z ##[debug]Evaluating condition for step: 'Build application'
2024-02-06T05:56:28.6508320Z ##[debug]Evaluating: SucceededNode()
2024-02-06T05:56:28.6508770Z ##[debug]Evaluating SucceededNode:
2024-02-06T05:56:28.6509190Z ##[debug]=> True
2024-02-06T05:56:28.6509730Z ##[debug]Result: True
2024-02-06T05:56:28.6510190Z ##[section]Starting: Build application
2024-02-06T05:56:28.6519320Z ==============================================================================
2024-02-06T05:56:28.6519440Z Task         : Flutter Build Task
2024-02-06T05:56:28.6519500Z Description  : Build a Flutter application project.
2024-02-06T05:56:28.6519570Z Version      : 0.3.10
2024-02-06T05:56:28.6519640Z Author       : Hey24sheep
2024-02-06T05:56:28.6519690Z Help         : [More Information](https://github.com/hey24sheep/azure-flutter-tasks)
2024-02-06T05:56:28.6519770Z ==============================================================================
2024-02-06T05:56:28.6583090Z ##[debug]Using node path: /Users/runner/runners/3.232.3/externals/node10/bin/node
2024-02-06T05:56:31.0009910Z ##[debug]agent.TempDirectory=/Users/runner/work/_temp
2024-02-06T05:56:31.1002570Z ##[debug]Agent running environment resource - Disk: available:135999.00MB out of 388919.00MB, Memory: used 28MB out of 14336MB, CPU: usage 9.33
2024-02-06T05:56:31.1867000Z ##[debug]loading inputs and endpoints
2024-02-06T05:56:31.1882730Z ##[debug]loading INPUT_TARGET
2024-02-06T05:56:31.1909440Z ##[debug]loading INPUT_PROJECTDIRECTORY
2024-02-06T05:56:31.1912080Z ##[debug]loading INPUT_FLUTTERDIRECTORY
2024-02-06T05:56:31.1914240Z ##[debug]loading INPUT_VERBOSEMODE
2024-02-06T05:56:31.1916830Z ##[debug]loading INPUT_DEBUGMODE
2024-02-06T05:56:31.1918880Z ##[debug]loading INPUT_PROFILEMODE
2024-02-06T05:56:31.1920910Z ##[debug]loading INPUT_SPLITPERABI
2024-02-06T05:56:31.1923120Z ##[debug]loading INPUT_APKTARGETPLATFORM
2024-02-06T05:56:31.1925640Z ##[debug]loading INPUT_IOSTARGETPLATFORM
2024-02-06T05:56:31.1927090Z ##[debug]loading INPUT_IOSCODESIGN
2024-02-06T05:56:31.1929900Z ##[debug]loading INPUT_EXTRAARGS
2024-02-06T05:56:31.1932180Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2024-02-06T05:56:31.1934330Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2024-02-06T05:56:31.1936250Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2024-02-06T05:56:31.1944430Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2024-02-06T05:56:31.1947890Z ##[debug]loading SECRET_KEYCHAINPASSWORD
2024-02-06T05:56:31.1949910Z ##[debug]loaded 16
2024-02-06T05:56:31.1956630Z ##[debug]Agent.ProxyUrl=undefined
2024-02-06T05:56:31.1957800Z ##[debug]Agent.CAInfo=undefined
2024-02-06T05:56:31.1958820Z ##[debug]Agent.ClientCert=undefined
2024-02-06T05:56:31.1959280Z ##[debug]Agent.SkipCertValidation=undefined
2024-02-06T05:56:31.1968520Z ##[debug]FlutterToolPath=/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin
2024-02-06T05:56:31.1980530Z ##[debug]target=ipa
2024-02-06T05:56:31.1984110Z ##[debug]projectDirectory=/Users/runner/work/1/s/ISFV2/ericsson_mobile_isf
2024-02-06T05:56:31.1985050Z ##[debug]Moving to /Users/runner/work/1/s/ISFV2/ericsson_mobile_isf
2024-02-06T05:56:31.2046340Z ##[debug]Project's directory : /Users/runner/work/1/s/ISFV2/ericsson_mobile_isf
2024-02-06T05:56:31.2049690Z ##[debug]debugMode=false
2024-02-06T05:56:31.2051490Z ##[debug]profileMode=false
2024-02-06T05:56:31.2051960Z ##[debug]buildName=undefined
2024-02-06T05:56:31.2052420Z ##[debug]buildNumber=undefined
2024-02-06T05:56:31.2052990Z ##[debug]buildFlavour=undefined
2024-02-06T05:56:31.2053610Z ##[debug]entryPoint=undefined
2024-02-06T05:56:31.2054370Z ##[debug]dartDefine=undefined
2024-02-06T05:56:31.2055140Z ##[debug]dartDefineMulti=undefined
2024-02-06T05:56:31.2055810Z ##[debug]splitPerAbi=false
2024-02-06T05:56:31.2057060Z ##[debug]verboseMode=false
2024-02-06T05:56:31.2058430Z ##[debug]extraArgs=--export-method development
2024-02-06T05:56:31.2059060Z ##[debug]dartDefineMultiArgSeparator=undefined
2024-02-06T05:56:31.2059520Z ##[debug]extraArgsSeparator=undefined
2024-02-06T05:56:31.2061190Z ##[debug]iosTargetPlatform=device
2024-02-06T05:56:31.2063120Z ##[debug]iosCodesign=true
2024-02-06T05:56:31.2063530Z ##[debug]exportOptionsPlist=undefined
2024-02-06T05:56:31.2070650Z ##[debug]which '/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter'
2024-02-06T05:56:31.2077340Z ##[debug]found: '/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter'
2024-02-06T05:56:31.2081020Z ##[debug]/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter arg: ["build","ipa","--export-method","development"]
2024-02-06T05:56:31.2081750Z ##[debug]/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter arg: ["build","ipa","--export-method","development"]
2024-02-06T05:56:31.2084930Z ##[debug]exec tool: /Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter
2024-02-06T05:56:31.2085580Z ##[debug]exec tool: /Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter
2024-02-06T05:56:31.2086030Z ##[debug]arguments:
2024-02-06T05:56:31.2086400Z ##[debug]arguments:
2024-02-06T05:56:31.2086780Z ##[debug]   build
2024-02-06T05:56:31.2087120Z ##[debug]   build
2024-02-06T05:56:31.2087490Z ##[debug]   ipa
2024-02-06T05:56:31.2088290Z ##[debug]   ipa
2024-02-06T05:56:31.2088740Z ##[debug]   --export-method
2024-02-06T05:56:31.2089150Z ##[debug]   --export-method
2024-02-06T05:56:31.2090610Z ##[debug]   development
2024-02-06T05:56:31.2091750Z ##[debug]   development
2024-02-06T05:56:31.2093980Z [command]/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter build ipa --export-method development
2024-02-06T05:56:36.1232100Z ##[debug]Agent running environment resource - Disk: available:135999.00MB out of 388919.00MB, Memory: used 28MB out of 14336MB, CPU: usage 9.07
2024-02-06T05:56:36.3869470Z Resolving dependencies...
2024-02-06T05:56:41.1246660Z ##[debug]Agent running environment resource - Disk: available:135996.00MB out of 388919.00MB, Memory: used 28MB out of 14336MB, CPU: usage 8.81
2024-02-06T05:56:46.2171590Z ##[debug]Agent running environment resource - Disk: available:135988.00MB out of 388919.00MB, Memory: used 28MB out of 14336MB, CPU: usage 8.57
2024-02-06T05:56:51.2707620Z ##[debug]Agent running environment resource - Disk: available:135978.00MB out of 388919.00MB, Memory: used 28MB out of 14336MB, CPU: usage 8.34
2024-02-06T05:56:56.3413540Z ##[debug]Agent running environment resource - Disk: available:135972.00MB out of 388919.00MB, Memory: used 28MB out of 14336MB, CPU: usage 8.13
2024-02-06T05:57:01.3424620Z ##[debug]Agent running environment resource - Disk: available:135970.00MB out of 388919.00MB, Memory: used 28MB out of 14336MB, CPU: usage 7.93
2024-02-06T05:57:06.3428250Z ##[debug]Agent running environment resource - Disk: available:135969.00MB out of 388919.00MB, Memory: used 28MB out of 14336MB, CPU: usage 7.73
2024-02-06T05:57:11.3434770Z ##[debug]Agent running environment resource - Disk: available:135964.00MB out of 388919.00MB, Memory: used 28MB out of 14336MB, CPU: usage 7.55
2024-02-06T05:57:16.4106210Z ##[debug]Agent running environment resource - Disk: available:135941.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 7.37
2024-02-06T05:57:21.5378760Z ##[debug]Agent running environment resource - Disk: available:135936.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 7.20
2024-02-06T05:57:26.6646010Z ##[debug]Agent running environment resource - Disk: available:135935.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 7.04
2024-02-06T05:57:31.6655890Z ##[debug]Agent running environment resource - Disk: available:135932.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 6.88
2024-02-06T05:57:36.6956150Z ##[debug]Agent running environment resource - Disk: available:135934.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 6.74
2024-02-06T05:57:41.8258840Z ##[debug]Agent running environment resource - Disk: available:135939.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 6.60
2024-02-06T05:57:46.8274180Z ##[debug]Agent running environment resource - Disk: available:135929.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 6.46
2024-02-06T05:57:51.9106460Z ##[debug]Agent running environment resource - Disk: available:135923.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 6.33
2024-02-06T05:57:56.9109370Z ##[debug]Agent running environment resource - Disk: available:135919.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 6.21
2024-02-06T05:58:02.0496470Z ##[debug]Agent running environment resource - Disk: available:135912.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 6.09
2024-02-06T05:58:07.0502650Z ##[debug]Agent running environment resource - Disk: available:135903.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.98
2024-02-06T05:58:12.1793530Z ##[debug]Agent running environment resource - Disk: available:135898.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.86
2024-02-06T05:58:17.3192870Z ##[debug]Agent running environment resource - Disk: available:135896.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.76
2024-02-06T05:58:22.3814900Z ##[debug]Agent running environment resource - Disk: available:135894.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.66
2024-02-06T05:58:27.4813050Z ##[debug]Agent running environment resource - Disk: available:135887.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.56
2024-02-06T05:58:32.5210560Z ##[debug]Agent running environment resource - Disk: available:135880.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.46
2024-02-06T05:58:37.5583950Z ##[debug]Agent running environment resource - Disk: available:135877.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.37
2024-02-06T05:58:42.5594200Z ##[debug]Agent running environment resource - Disk: available:135871.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.28
2024-02-06T05:58:47.6488190Z ##[debug]Agent running environment resource - Disk: available:135869.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.20
2024-02-06T05:58:52.7699070Z ##[debug]Agent running environment resource - Disk: available:135864.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.12
2024-02-06T05:58:57.8111840Z ##[debug]Agent running environment resource - Disk: available:135863.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 5.04
2024-02-06T05:59:02.8604310Z ##[debug]Agent running environment resource - Disk: available:135862.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.96
2024-02-06T05:59:07.8816740Z ##[debug]Agent running environment resource - Disk: available:135861.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.89
2024-02-06T05:59:12.8826840Z ##[debug]Agent running environment resource - Disk: available:135855.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.82
2024-02-06T05:59:17.9037520Z ##[debug]Agent running environment resource - Disk: available:135853.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.75
2024-02-06T05:59:22.9776210Z ##[debug]Agent running environment resource - Disk: available:135840.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.68
2024-02-06T05:59:27.9811060Z ##[debug]Agent running environment resource - Disk: available:135834.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.62
2024-02-06T05:59:32.2795430Z   _fe_analyzer_shared 61.0.0 (67.0.0 available)
2024-02-06T05:59:32.2795680Z   _flutterfire_internals 1.3.16 (1.3.20 available)
2024-02-06T05:59:32.2796140Z   analyzer 5.13.0 (6.4.1 available)
2024-02-06T05:59:32.2796300Z   analyzer_plugin 0.11.2 (0.11.3 available)
2024-02-06T05:59:32.2796530Z   asn1lib 1.5.0 (1.5.2 available)
2024-02-06T05:59:32.2796680Z   build_runner_core 7.2.11 (7.3.0 available)
2024-02-06T05:59:32.2797740Z   built_value 8.8.1 (8.9.0 available)
2024-02-06T05:59:32.2797910Z   coverage 1.6.4 (1.7.2 available)
2024-02-06T05:59:32.2798090Z   custom_lint 0.5.8 (0.6.0 available)
2024-02-06T05:59:32.2798250Z   custom_lint_builder 0.5.8 (0.6.0 available)
2024-02-06T05:59:32.2798440Z   custom_lint_core 0.5.8 (0.6.0 available)
2024-02-06T05:59:32.2798600Z   dart_style 2.3.2 (2.3.4 available)
2024-02-06T05:59:32.2798740Z   device_info_plus 9.1.1 (9.1.2 available)
2024-02-06T05:59:32.2798930Z   ffi 2.1.0 (2.1.2 available)
2024-02-06T05:59:32.2799060Z   file 6.1.4 (7.0.0 available)
2024-02-06T05:59:32.2799250Z   firebase_analytics 10.8.0 (10.8.4 available)
2024-02-06T05:59:32.2799410Z   firebase_analytics_platform_interface 3.9.0 (3.9.4 available)
2024-02-06T05:59:32.2799640Z   firebase_analytics_web 0.5.5+12 (0.5.5+16 available)
2024-02-06T05:59:32.2799790Z   firebase_core 2.24.2 (2.25.3 available)
2024-02-06T05:59:32.2799990Z   firebase_core_web 2.10.0 (2.11.3 available)
2024-02-06T05:59:32.2800140Z   firebase_crashlytics 3.4.9 (3.4.13 available)
2024-02-06T05:59:32.2800360Z   firebase_crashlytics_platform_interface 3.6.16 (3.6.20 available)
2024-02-06T05:59:32.2800530Z   firebase_messaging 14.7.10 (14.7.14 available)
2024-02-06T05:59:32.2800740Z   firebase_messaging_platform_interface 4.5.18 (4.5.22 available)
2024-02-06T05:59:32.2800920Z   firebase_messaging_web 3.5.18 (3.6.3 available)
2024-02-06T05:59:32.2801120Z   firebase_performance 0.9.3+8 (0.9.3+12 available)
2024-02-06T05:59:32.2801290Z   firebase_performance_platform_interface 0.1.4+16 (0.1.4+20 available)
2024-02-06T05:59:32.2801510Z   firebase_performance_web 0.1.4+16 (0.1.4+20 available)
2024-02-06T05:59:32.2801770Z   flutter_local_notifications 16.3.0 (16.3.2 available)
2024-02-06T05:59:32.2801980Z   flutter_riverpod 2.4.9 (2.4.10 available)
2024-02-06T05:59:32.2802130Z   flutter_svg 2.0.7 (2.0.9 available)
2024-02-06T05:59:32.2802310Z   get_it 7.6.6 (7.6.7 available)
2024-02-06T05:59:32.2802750Z   gql 1.0.1-alpha+1705114622973 (1.0.1-alpha+1706372327764 available)
2024-02-06T05:59:32.2803330Z   gql_link 1.0.1-alpha+1705114622987 (1.0.1-alpha+1706372327781 available)
2024-02-06T05:59:32.2803510Z   image 4.1.4 (4.1.6 available)
2024-02-06T05:59:32.2803710Z   intl 0.18.1 (0.19.0 available)
2024-02-06T05:59:32.2803850Z   js 0.6.7 (0.7.0 available)
2024-02-06T05:59:32.2804030Z   matcher 0.12.16 (0.12.16+1 available)
2024-02-06T05:59:32.2804680Z   material_color_utilities 0.5.0 (0.8.0 available)
2024-02-06T05:59:32.2804910Z   meta 1.10.0 (1.11.0 available)
2024-02-06T05:59:32.2805060Z   mime 1.0.4 (1.0.5 available)
2024-02-06T05:59:32.2805240Z   normalize 0.8.2+1 (0.9.1 available)
2024-02-06T05:59:32.2805390Z   path 1.8.3 (1.9.0 available)
2024-02-06T05:59:32.2805530Z   petitparser 5.4.0 (6.0.2 available)
2024-02-06T05:59:32.2805720Z   platform 3.1.2 (3.1.4 available)
2024-02-06T05:59:32.2805860Z   process 4.2.4 (5.0.2 available)
2024-02-06T05:59:32.2806050Z   quick_log 5.3.1 (5.4.0 available)
2024-02-06T05:59:32.2806190Z   riverpod 2.4.9 (2.5.0 available)
2024-02-06T05:59:32.2806390Z   test_api 0.6.1 (0.7.0 available)
2024-02-06T05:59:32.2806530Z   vector_graphics 1.1.7 (1.1.10 available)
2024-02-06T05:59:32.2806750Z   vector_graphics_codec 1.1.7 (1.1.10 available)
2024-02-06T05:59:32.2806900Z   vector_graphics_compiler 1.1.7 (1.1.10 available)
2024-02-06T05:59:32.2807110Z   vm_service 11.10.0 (14.0.0 available)
2024-02-06T05:59:32.2807250Z   web 0.3.0 (0.4.2 available)
2024-02-06T05:59:32.2807450Z   web_socket_channel 2.4.0 (2.4.3 available)
2024-02-06T05:59:32.2807600Z   webdriver 3.0.2 (3.0.3 available)
2024-02-06T05:59:32.2807800Z   webview_flutter 4.4.4 (4.5.0 available)
2024-02-06T05:59:32.2807950Z   webview_flutter_android 3.13.2 (3.14.0 available)
2024-02-06T05:59:32.2808170Z   webview_flutter_platform_interface 2.9.1 (2.10.0 available)
2024-02-06T05:59:32.2808350Z   webview_flutter_wkwebview 3.10.2 (3.11.0 available)
2024-02-06T05:59:32.2808540Z   xml 6.3.0 (6.5.0 available)
2024-02-06T05:59:32.2816840Z Got dependencies!
2024-02-06T05:59:32.2849770Z 61 packages have newer versions incompatible with dependency constraints.
2024-02-06T05:59:32.2850560Z Try `flutter pub outdated` for more information.
2024-02-06T05:59:33.0417990Z ##[debug]Agent running environment resource - Disk: available:135802.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.55
2024-02-06T05:59:34.4975640Z 
2024-02-06T05:59:38.1090280Z ##[debug]Agent running environment resource - Disk: available:135793.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.49
2024-02-06T05:59:43.1198620Z ##[debug]Agent running environment resource - Disk: available:135778.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.44
2024-02-06T05:59:44.0396250Z Archiving com.ericsson.isf...
2024-02-06T05:59:44.1534260Z Automatically signing iOS for device deployment using specified development team in Xcode project: EG2ML2NW5A
2024-02-06T05:59:48.1208820Z ##[debug]Agent running environment resource - Disk: available:135809.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.38
2024-02-06T05:59:53.1357430Z ##[debug]Agent running environment resource - Disk: available:135823.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.33
2024-02-06T05:59:58.2340830Z ##[debug]Agent running environment resource - Disk: available:135817.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.27
2024-02-06T06:00:03.2967840Z ##[debug]Agent running environment resource - Disk: available:135740.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.22
2024-02-06T06:00:08.3329330Z ##[debug]Agent running environment resource - Disk: available:135823.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.17
2024-02-06T06:00:13.4454740Z ##[debug]Agent running environment resource - Disk: available:135695.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.12
2024-02-06T06:00:18.4452370Z ##[debug]Agent running environment resource - Disk: available:135749.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.07
2024-02-06T06:00:23.4496520Z ##[debug]Agent running environment resource - Disk: available:135023.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 4.03
2024-02-06T06:00:28.4502960Z ##[debug]Agent running environment resource - Disk: available:134901.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.98
2024-02-06T06:00:33.4737690Z ##[debug]Agent running environment resource - Disk: available:135025.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.94
2024-02-06T06:00:38.4854490Z ##[debug]Agent running environment resource - Disk: available:134995.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.89
2024-02-06T06:00:43.5314280Z ##[debug]Agent running environment resource - Disk: available:134913.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.85
2024-02-06T06:00:48.5421170Z ##[debug]Agent running environment resource - Disk: available:134971.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.81
2024-02-06T06:00:53.5435910Z ##[debug]Agent running environment resource - Disk: available:134873.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.77
2024-02-06T06:00:58.6432030Z ##[debug]Agent running environment resource - Disk: available:134992.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.73
2024-02-06T06:01:03.6929050Z ##[debug]Agent running environment resource - Disk: available:134840.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.69
2024-02-06T06:01:08.8267340Z ##[debug]Agent running environment resource - Disk: available:134913.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.65
2024-02-06T06:01:13.8308900Z ##[debug]Agent running environment resource - Disk: available:134848.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.62
2024-02-06T06:01:18.8737550Z ##[debug]Agent running environment resource - Disk: available:134963.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.58
2024-02-06T06:01:23.8797810Z ##[debug]Agent running environment resource - Disk: available:134788.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.55
2024-02-06T06:01:28.9322500Z ##[debug]Agent running environment resource - Disk: available:134868.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.51
2024-02-06T06:01:33.9425320Z ##[debug]Agent running environment resource - Disk: available:134838.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.48
2024-02-06T06:01:38.9425760Z ##[debug]Agent running environment resource - Disk: available:134799.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.45
2024-02-06T06:01:44.0416820Z ##[debug]Agent running environment resource - Disk: available:134827.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.42
2024-02-06T06:01:49.0519130Z ##[debug]Agent running environment resource - Disk: available:134845.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.39
2024-02-06T06:01:51.9752490Z Running pod install...                                            126.7s
2024-02-06T06:01:54.0530840Z ##[debug]Agent running environment resource - Disk: available:134843.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.36
2024-02-06T06:01:59.1019970Z ##[debug]Agent running environment resource - Disk: available:134846.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.33
2024-02-06T06:02:04.1042610Z ##[debug]Agent running environment resource - Disk: available:134844.00MB out of 388919.00MB, Memory: used 27MB out of 14336MB, CPU: usage 3.30
2024-02-06T06:02:07.1392120Z Running Xcode build...                                          
2024-02-06T06:02:07.1459620Z Xcode archive done.                                         15.1s
2024-02-06T06:02:08.6720080Z Failed to build iOS app
2024-02-06T06:02:08.6768570Z Error (Xcode): No profiles for 'com.ericsson.isf' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.ericsson.isf'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
2024-02-06T06:02:08.6770080Z /Users/runner/work/1/s/ISFV2/ericsson_mobile_isf/ios/Runner.xcodeproj
2024-02-06T06:02:08.6770770Z 
2024-02-06T06:02:08.6774130Z 
2024-02-06T06:02:08.6775110Z It appears that there was a problem signing your application prior to installation on the device.
2024-02-06T06:02:08.6775620Z 
2024-02-06T06:02:08.6776810Z Verify that the Bundle Identifier in your project is your signing id in Xcode
2024-02-06T06:02:08.6777460Z   open ios/Runner.xcworkspace
2024-02-06T06:02:08.6778280Z 
2024-02-06T06:02:08.6779310Z Also try selecting 'Product > Build' to fix the problem.
2024-02-06T06:02:08.6868020Z Encountered error while archiving for device.
2024-02-06T06:02:08.7373420Z ##[debug]Exit code 1 received from tool '/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter'
2024-02-06T06:02:08.7394730Z ##[debug]Exit code 1 received from tool '/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter'
2024-02-06T06:02:08.7395370Z ##[debug]STDIO streams have closed for tool '/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter'
2024-02-06T06:02:08.7395830Z ##[debug]STDIO streams have closed for tool '/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter'
2024-02-06T06:02:08.7462490Z ##[debug]task result: Failed
2024-02-06T06:02:08.7511460Z ##[error]Error: The process '/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter' failed with exit code 1
2024-02-06T06:02:08.7521680Z ##[debug]Processed: ##vso[task.issue type=error;]Error: The process '/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter' failed with exit code 1
2024-02-06T06:02:08.7523030Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: The process '/Users/runner/hostedtoolcache/Flutter/3.16.9/macos/flutter/bin/flutter' failed with exit code 1
2024-02-06T06:02:08.7525920Z ##[section]Finishing: Build application

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

No response

hey24sheep commented 9 months ago

Hi, you can see the issue is with the provisioning profile No profiles for 'com.ericsson.isf' were found:. Please go through the links once, you will find your solution I am sure. This issue has been solved multiple times here.

komalkhatri08 commented 9 months ago

@hey24sheep I have checked the provisioning profile. It is same I am using when building on Xcode. but in pipeline it fails. Will go through above links given by you and get back if any progress. Thanks a lot for your reply :)

hey24sheep commented 9 months ago

The problem is not that your profile is same, the problem is that it's not found by the build pipeline.

komalkhatri08 commented 9 months ago

ok I have tried all solution and I was able to build the iOS Archive and Runner.app using Xcode extension and Flutter build extension of Alois Deniel . But when. I use Flutter build extension of hey24sheep it gives me same above error. Also I have a query when I m using development certificate in azure pipeline will it make ipa?

hey24sheep commented 9 months ago

This extension is based and updated on on top of his extension only. You can use his if that works for you. Also it will build the IPA if you provide the build command as the IPA when selecting the build type

hey24sheep commented 8 months ago

Dupe issue https://github.com/hey24sheep/azure-flutter-tasks/issues/119

hey24sheep commented 6 months ago

@komalkhatri08 can you check this https://github.com/hey24sheep/azure-flutter-tasks/issues/119 issue once

hey24sheep commented 5 months ago

@komalkhatri08 Close this issue in case it's solved, otherwise I will close this issue soon

otiv33 commented 5 months ago

In my case I had a line in my project.pbxproj. Under release XCBuildConfiguration I had a line defined "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";. I just replaced "iPhone Developer" with "" (empty string) and then it worked. Because the signing identity was development and the config was run on distribution it conflicted in the build.