Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting a errors when trying to upload ios artifact to test flight using App Store Release task #369

Open
UvinduS opened this issue Jun 28, 2024 · 3 comments

Comments

@UvinduS
Copy link

UvinduS commented Jun 28, 2024

Screenshot 2024-06-28 145815

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/microsoft/app-store-vsts-extension/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Question

Enter Task Name: App Store Release

list here (V# not needed):
https://github.com/microsoft/app-store-vsts-extension/tree/master/Tasks

Environment

  • Server - Azure Pipelines or TFS on-premises? Azure Pipelines

    • If using TFS on-premises, provide the version:

    • If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

  • Agent - Hosted or Private:

    • If using Hosted agent, provide agent queue name:

    • If using private agent, provide the OS of the machine running the agent and the agent version:

Issue Description

[Include task name(s), screenshots and any other relevant details]

Task logs

[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

##[debug]Exit code 1 received from tool '/usr/local/lib/ruby/gems/3.0.0/bin/fastlane'
##[debug]STDIO streams have closed for tool '/usr/local/lib/ruby/gems/3.0.0/bin/fastlane'
##[debug]task result: Failed
##[error]Error: The process '/usr/local/lib/ruby/gems/3.0.0/bin/fastlane' failed with exit code 1
##[debug]Processed: ##vso[task.issue type=error;]Error: The process '/usr/local/lib/ruby/gems/3.0.0/bin/fastlane' failed with exit code 1
##[debug]Processed: ##vso[task.complete result=Failed;]Error: The process '/usr/local/lib/ruby/gems/3.0.0/bin/fastlane' failed with exit code 1
##[debug]Clearing API Key file
Finishing: AppStoreRelease
@UvinduS
Copy link
Author

UvinduS commented Jun 28, 2024

here is my azure pipeline file

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: 'AppStoreRelase'
          releaseTrack: 'TestFlight'
          appIdentifier: 'com.cicd.smsforwarder'
          appType: 'iOS'
          ipaPath: '$(build.artifactstagingdirectory)/smsforwarder.ipa'
          shouldSkipWaitingForProcessing: true
          shouldSkipSubmission: true
          appSpecificId: '12345678'
          installFastlane: true
          additionalFastlaneArgs: '--verbose'

@DenisRumyantsev
Copy link
Contributor

Hi @UvinduS can you please describe in more detail how to reproduce your error?

@UvinduS
Copy link
Author

UvinduS commented Jul 3, 2024

I have flutter app and trying to build ios app using above mentioned pipeline file and in the last step AppStoreRelease@1, I'm getting the error in above screen shot. I've created token based authentication for the task. I can't figure out the error, is there any specific way to configure this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants