ios – Flutter Pipeline in Azure DevOps (Job Xcode construct IPA)


I’m making an attempt to construct my flutter iOS App.

I’m operating an azure devops pipeline that builds app ios .ipa. Strive varied strategies I discovered on the web
I did the steps of the official documentation and different examples discovered and I’ve this error.
sorry for my English.

pool:
  vmImage: macOS-latest

phases:

- stage: iOSStage
  dependsOn: []
  displayName: iOS
  jobs:
 
  - job: iOSJob
    displayName: iOS
    steps:

    - process: [email protected]
      inputs:
        certSecureFile: 'Certificates.p12'
        certPwd: '$(p12_pass)'
        keychain: 'temp'

    - process: [email protected]
      displayName: Set up provisioning file
      title: ProvisionProfile
      inputs:
        provisioningProfileLocation: 'secureFiles'
        provProfileSecureFile: 'Ad_Hoc_distribution_provisioning_profile.mobileprovision'

    - process: [email protected]
      inputs:
          mode: 'auto'
          channel: 'steady'
          model: '{custom}'
          customVersion: '3.0.5'

    - process: [email protected]
      inputs:
        projectDirectory: './ios'
        flutterDirectory: './ios'
        arguments: 'clear'

    - process: [email protected]
      inputs:
        projectDirectory: './ios'
        arguments: 'pub get'

    - process: [email protected]
      inputs:
        forceRepoUpdate: false
        workingDirectory: ./ios
        projectDirectory: ./ios

    - process: [email protected]
      displayName: "Flutter Construct Apps - iOS"
      inputs:
          goal: "ios"
          buildName: "$(Construct.BuildNumber)"
          entryPoint: 
          iosCodesign: true
          iosTargetPlatform: simulator
          buildFlavour: qa
          extraArgs: --flavor $(buildFlavourtype)
          exportOptionsPlist: ./ios/Flutter/AppFrameworkInfo.plist
          debugMode: true[enter image description here][1]

    - process: [email protected]
      inputs:
        actions: 'clear'
        packageApp: true
        xcWorkspacePath: './ios/Runner.xcworkspace'
        signingOption: handbook
        sdk: $(SDK)
        configuration: "launch"
        scheme: $(buildFlavourtype)
        provisioningProfileUuid: $(APPLE_PROV_PROFILE_UUID)
        signingIdentity: $(APPLE_CERTIFICATE_SIGNING_IDENTITY)
        TeamId: $(TeamId)
        exportOptionsPlist: ./ios/Flutter/AppFrameworkInfo.plist        #'./ios/Runner/Information.plist'
        exportOptions: ./ios/Flutter/AppFrameworkInfo.plist
        args: CODE_SIGNING_ALLOWED=No CODE_SIGNING_REQUIRED=No EXPANDED_CODE_SIGN_IDENTITY="" -allowProvisioningUpdates

    - process: [email protected]
      displayName: "Copy app to staging listing"
      inputs:
        sourceFolder: '$(Agent.BuildDirectory)'
        contents: '**/ipa/*.ipa'
        targetFolder: '$(Construct.StagingDirectory)'
        flattenFolders: true

    - process: [email protected]
      displayName: "Publish IPA file"
      inputs:
        PathtoPublish: '$(Construct.ArtifactStagingDirectory)'
        ArtifactName: 'IPA'
        publishLocation: 'Container'

And the failing Xcode archive process:

Job Xcode construct

- process: [email protected]
      inputs:
        projectDirectory: '.'
        arguments: 'construct ipa --release --build-name=1.0 --build-number 1 --export-options-plist=./ios/Flutter/AppFrameworkInfo.plist --target=lib/main_qa.dart --flavor qa '

Flutter construct ipa

Additionally

 - process: [email protected]
      displayName: "Flutter Construct Apps - iOS"
      inputs:
          goal: "ipa"
          buildName: "$(Construct.BuildNumber)"
          entryPoint: "$(buildtype)"
          iosCodesign: true
          iosTargetPlatform: simulator
          buildFlavour: qa
          extraArgs: --flavor $(buildFlavourtype)
          exportOptionsPlist: ./ios/Flutter/AppFrameworkInfo.plist
          debugMode: true

code construct

pubspect.yaml


title: XXX
description: XXX

# The next line prevents the bundle from being unintentionally revealed to
# pub.dev utilizing `flutter pub publish`. That is most popular for personal packages.
publish_to: 'none' # Take away this line if you happen to want to publish to pub.dev

# The next defines the model and construct quantity in your utility.
# A model quantity is three numbers separated by dots, like 1.2.43
# adopted by an non-compulsory construct quantity separated by a +.
# Each the model and the builder quantity could also be overridden in flutter
# construct by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName whereas build-number used as versionCode.
# Learn extra about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString whereas build-number used as CFBundleVersion.
# Learn extra about iOS versioning at
# https://developer.apple.com/library/archive/documentation/Common/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
model: 1.0.0+1

surroundings:
  sdk: ">=2.16.2 <3.0.0"

# Dependencies specify different packages that your bundle wants to be able to work.
# To mechanically improve your bundle dependencies to the newest variations
# contemplate operating `flutter pub improve --major-versions`. Alternatively,
# dependencies may be manually up to date by altering the model numbers beneath to
# the newest model accessible on pub.dev. To see which dependencies have newer
# variations accessible, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.2
  # State managment
  flutter_bloc: ^8.0.1
  bloc: ^8.0.3
  get_it: ^7.2.0
  # Storage
  flutter_secure_storage: ^5.0.2
  shared_preferences: ^2.0.13
  # Utils
  either_dart: ^0.1.4
  dio: ^4.0.6
  equatable: ^2.0.3
  flutter_localizations:
    sdk: flutter
  intl: ^0.17.0
  sizer: ^2.0.15
  faker: ^2.0.0
  logger: ^1.1.0
  clipboard: ^0.1.3
  url_launcher: ^6.1.5
  flutter_stripe: ^4.0.0
  flutter_stripe_web: ^1.2.0
  # Widgets
  pinput: ^2.2.7
  intl_phone_field: ^3.1.0
  flutter_platform_widgets: ^1.20.0
  card_swiper: ^2.0.3
  flutter_animation_progress_bar: ^2.1.1
  flutter_countdown_timer: ^4.1.0
  accordion: ^2.3.0
  flutter_svg: ^1.0.3
  flutter_portal: ^1.0.0
  badges: ^2.0.3
  country_icons: ^2.0.2


dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^1.0.0
  bloc_test: ^9.0.3
  check: ^1.16.0
  flutter_launcher_icons: ^0.9.2

flutter_icons:
  android: true
  ios: false
  min_sdk_android: 21
  image_path_ios: "belongings/icons/ios_launcher.png"
  adaptive_icon_background: '#000000'
  remove_alpha_ios: true
  image_path: "belongings/icons/icon_launcher.png"

# For info on the generic Dart a part of this file, see the
# following web page: https://dart.dev/instruments/pub/pubspec

# The next part is restricted to Flutter.
flutter:

  # The next line ensures that the Materials Icons font is
  # included along with your utility, as a way to use the icons in
  # the fabric Icons class.
  uses-material-design: true
  generate: true


  # So as to add belongings to your utility, add an belongings part, like this:
  belongings:
    - belongings/
    - belongings/icons/
    - belongings/helmets/

  # A picture asset can check with a number of resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For particulars relating to including belongings from bundle dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # So as to add {custom} fonts to your utility, add a fonts part right here,
  # on this "flutter" part. Every entry on this checklist ought to have a
  # "household" key with the font household title, and a "fonts" key with a
  # checklist giving the asset and different descriptors for the font. For
  # instance:
  # fonts:
  #   - household: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Common.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         model: italic
  #   - household: Trajan Professional
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For particulars relating to fonts from bundle dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

Leave a Reply