OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

azure pipeline fails when trying to upload ios app to testflight

  • Thread starter Thread starter Uvindu Sahan
  • Start date Start date
U

Uvindu Sahan

Guest
My azure pipeline file as follows

My azure pipeline file as follows

Code:
trigger:
  - test-nj

jobs:
  - job: ios
    pool:
      vmImage: 'macOS-latest'
    variables:
      - name: configuration
        value: "Release"
      - name: sdk
        value: "iphoneos"
      - name: scheme
        value: "Runner"
      - name: system.debug
        value: true

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

      - task: FlutterBuild@0
        displayName: "Flutter Build Apps - iOS"
        inputs:
          target: "ios"
          buildName: "$(Build.BuildNumber)"
          entryPoint: "lib/main.dart"
          iosCodesign: false

      - task: InstallAppleCertificate@2
        inputs:
          certSecureFile: 'appCertificate.p12'
          certPwd: $(appCertificatePassword)
          keychain: 'temp'
          deleteCert: true
 
      - task: InstallAppleProvisioningProfile@1
        inputs:
          provProfileSecureFile: 'app.mobileprovision'
          removeProfile: true

      - task: Xcode@5
        inputs:
          actions: 'build'
          scheme: '$(scheme)'
          sdk: '$(sdk)'
          configuration: '$(configuration)'
          xcWorkspacePath: '**/ios/Runner.xcworkspace'
          xcodeVersion: 'default'
          signingOption: 'manual'
          signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
          provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
          packageApp: true
 
      - task: CopyFiles@2
        inputs:
          contents: '**/*.ipa'
          targetFolder: '$(build.artifactStagingDirectory)'
          overWrite: true
          flattenFolders: true

      - task: PublishBuildArtifacts@1
        inputs:
          pathtoPublish: '$(build.artifactStagingDirectory)'
          artifactName: 'drop'
          publishLocation: 'Container'
          
      - task: Bash@3
        displayName: "listing copied files"
        inputs:
          targetType: "inline"
          script: |
            ls  $(build.artifactstagingdirectory)/

      - task: AppStoreRelease@1
        inputs:
          serviceEndpoint: 'abc'
          releaseTrack: 'TestFlight'
          appIdentifier: 'com.abc.cde'
          appType: 'iOS'
          ipaPath: '$(build.artifactstagingdirectory)/abc.ipa'
          shouldSkipWaitingForProcessing: true
          shouldSkipSubmission: true
          appSpecificId: '12345678'
          installFastlane: true
          additionalFastlaneArgs: '--verbose'

I tried changing the AppStoreRelease@1 step but nothing works.
<p><a href="https://i.sstatic.net/mLcWNC9D.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mLcWNC9D.png" alt="My azure pipeline file as follows" /></a></p>
<p>My azure pipeline file as follows</p>
<pre class="lang-yaml prettyprint-override"><code>trigger:
- test-nj

jobs:
- job: ios
pool:
vmImage: 'macOS-latest'
variables:
- name: configuration
value: "Release"
- name: sdk
value: "iphoneos"
- name: scheme
value: "Runner"
- name: system.debug
value: true

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

- task: FlutterBuild@0
displayName: "Flutter Build Apps - iOS"
inputs:
target: "ios"
buildName: "$(Build.BuildNumber)"
entryPoint: "lib/main.dart"
iosCodesign: false

- task: InstallAppleCertificate@2
inputs:
certSecureFile: 'appCertificate.p12'
certPwd: $(appCertificatePassword)
keychain: 'temp'
deleteCert: true

- task: InstallAppleProvisioningProfile@1
inputs:
provProfileSecureFile: 'app.mobileprovision'
removeProfile: true

- task: Xcode@5
inputs:
actions: 'build'
scheme: '$(scheme)'
sdk: '$(sdk)'
configuration: '$(configuration)'
xcWorkspacePath: '**/ios/Runner.xcworkspace'
xcodeVersion: 'default'
signingOption: 'manual'
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
packageApp: true

- task: CopyFiles@2
inputs:
contents: '**/*.ipa'
targetFolder: '$(build.artifactStagingDirectory)'
overWrite: true
flattenFolders: true

- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(build.artifactStagingDirectory)'
artifactName: 'drop'
publishLocation: 'Container'

- task: Bash@3
displayName: "listing copied files"
inputs:
targetType: "inline"
script: |
ls $(build.artifactstagingdirectory)/

- task: AppStoreRelease@1
inputs:
serviceEndpoint: 'abc'
releaseTrack: 'TestFlight'
appIdentifier: 'com.abc.cde'
appType: 'iOS'
ipaPath: '$(build.artifactstagingdirectory)/abc.ipa'
shouldSkipWaitingForProcessing: true
shouldSkipSubmission: true
appSpecificId: '12345678'
installFastlane: true
additionalFastlaneArgs: '--verbose'
</code></pre>
<p>I tried changing the <code>AppStoreRelease@1</code> step but nothing works.</p>
Continue reading...
 
Top