Sunday, October 2, 2022
HomeiOS Developmentios - Flutter Pipeline in Azure DevOps (Activity Xcode construct IPA)

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


I’m attempting to construct my flutter iOS App.

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

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

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

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

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

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

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

    - activity: 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]

    - activity: 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

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

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

And the failing Xcode archive activity:

Activity Xcode construct

- activity: 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

 - activity: 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


title: XXX
description: XXX

# The next line prevents the bundle from being by accident printed 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 on your utility.
# A model quantity is three numbers separated by dots, like 1.2.43
# adopted by an optionally available 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 most recent variations
# take into account working `flutter pub improve --major-versions`. Alternatively,
# dependencies may be manually up to date by altering the model numbers under to
# the most recent 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: "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 utility, as a way to use the icons in
  # the fabric Icons class.
  uses-material-design: true
  generate: true


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

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

  # For particulars concerning including property 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 listing ought to have a
  # "household" key with the font household title, 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 concerning fonts from bundle dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments