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

[ad_1]

I’m attempting to construct my flutter iOS App.

I’m operating an azure DevOps pipeline that builds app ios .ipa. Attempt 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:

    - job: InstallAppleCertificate@2
      inputs:
        certSecureFile: 'Certificates.p12'
        certPwd: '$(p12_pass)'
        keychain: 'temp'

    - job: InstallAppleProvisioningProfile@1
      displayName: Set up provisioning file
      identify: ProvisionProfile
      inputs:
        provisioningProfileLocation: 'secureFiles'
        provProfileSecureFile: 'Ad_Hoc_distribution_provisioning_profile.mobileprovision'

    - job: FlutterInstall@0
      inputs:
          mode: 'auto'
          channel: 'steady'
          model: '{custom}'
          customVersion: '3.0.5'

    - job: FlutterCommand@0
      inputs:
        projectDirectory: './ios'
        flutterDirectory: './ios'
        arguments: 'clear'

    - job: FlutterCommand@0
      inputs:
        projectDirectory: './ios'
        arguments: 'pub get'

    - job: CocoaPods@0
      inputs:
        forceRepoUpdate: false
        workingDirectory: ./ios
        projectDirectory: ./ios

    - job: FlutterBuild@0
      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]

    - job: Xcode@5
      inputs:
        actions: 'clear'
        packageApp: true
        xcWorkspacePath: './ios/Runner.xcworkspace'
        signingOption: guide
        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

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

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

And the failing Xcode archive job:

Process Xcode construct

- job: FlutterCommand@0
      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

 - job: FlutterBuild@0
      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


identify: XXX
description: XXX

# The next line prevents the bundle from being by accident revealed to
# pub.dev utilizing `flutter pub publish`. That is most well-liked for personal packages.
publish_to: 'none' # Take away this line in the event you want to publish to pub.dev

# The next defines the model and construct quantity in your software.
# A model quantity is three numbers separated by dots, like 1.2.43
# adopted by an non-obligatory 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 as a way to work.
# To robotically improve your bundle dependencies to the newest variations
# contemplate operating `flutter pub improve --major-versions`. Alternatively,
# dependencies will be manually up to date by altering the model numbers beneath to
# the newest model obtainable on pub.dev. To see which dependencies have newer
# variations obtainable, 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
  take a look at: ^1.16.0
  flutter_launcher_icons: ^0.9.2

flutter_icons:
  android: true
  ios: false
  min_sdk_android: 21
  image_path_ios: "property/icons/ios_launcher.png"
  adaptive_icon_background: '#000000'
  remove_alpha_ios: true
  image_path: "property/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 software, to be able to use the icons in
  # the fabric Icons class.
  uses-material-design: true
  generate: true


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

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

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

  # So as to add {custom} fonts to your software, add a fonts part right here,
  # on this "flutter" part. Every entry on this listing ought to have a
  # "household" key with the font household identify, and a "fonts" key with a
  # listing 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
  #         type: 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

[ad_2]

Leave a Reply