Failed to deploy to Appstore connect - Bitrise build failed (exit code: 1)

Bitrise Build Issue Report template

## Description of the issue

Trying to upload the Build to Appstore connect and it was failed with the errors - Bitrise build failed (exit code: 1)

The Error log was:
[!] The request could not be completed because:

Authentication credentials are missing or invalid. - Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests Redirect: App Store Connect API documentation - Generating Tokens for API Requests

Deploy failed, error: exit status 1

Deploy failed, error: exit status 1

Environment:

Where did the issue happen?
macOS virtual machines (Apple Silicon)
M1 Medium
2 credits/min
4 CPU @ 3.2GHz
6 GB RAM

Which build Step causes the issue and which version of the step?
Deploy to App Store Connect with Deliver (formerly iTunes Connect) 2.x.x

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : YES/NO NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : YES/NO NO
  • Does the issue happen sporadically, or every time? : EVERY TIME
  • Does upgrading the build Step to the latest version help? : YES/NO NO
  • When did the issue start? : N/A

.yml file:
format_version: ‘13’
default_step_lib_source: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib
project_type: ios
workflows:
archive_and_export_app:
summary: Run your Xcode tests and create an IPA file to install your app on a
device or share it with your team.
description: The workflow will first clone your Git repository, cache and install
your project’s dependencies if any, run your Xcode tests, export an IPA file
from the project and save it.
steps:
- activate-ssh-key@4:
run_if: ‘{{getenv “SSH_RSA_PRIVATE_KEY” | ne “”}}’
- git-clone@8: {}
- cocoapods-install@2:
inputs:
- is_cache_disabled: ‘true’
- xcode-archive@5:
inputs:
- automatic_code_signing: apple-id
- distribution_method: app-store
- deploy-to-bitrise-io@2: {}
- deploy-to-itunesconnect-deliver@2:
inputs:
- itunescon_user: “$email”
- password: “$AppstorePassword”
- bundle_id: in.org.georgeinstitute.foodswitch
- fastlane_version: latest
- connection: api_key
envs:
- opts:
is_expand: false
duration: ‘500’
run_tests:
summary: Run your Xcode tests and get the test report.
description: The workflow will first clone your Git repository, cache and install
your project’s dependencies if any, run your Xcode tests and save the test results.
steps:
- activate-ssh-key@4:
run_if: ‘{{getenv “SSH_RSA_PRIVATE_KEY” | ne “”}}’
- git-clone@8: {}
- restore-cocoapods-cache@1: {}
- restore-spm-cache@1: {}
- cocoapods-install@2:
inputs:
- is_cache_disabled: ‘true’
- xcode-test@5:
inputs:
- project_path: “$BITRISE_PROJECT_PATH”
- scheme: “$BITRISE_SCHEME”
- test_repetition_mode: retry_on_failure
- cache_level: none
- save-cocoapods-cache@1: {}
- save-spm-cache@1: {}
- deploy-to-bitrise-io@2: {}
meta:
bitrise.io:
stack: osx-xcode-14.3.x-ventura
machine_type_id: g2-m1.4core
app:
envs:

  • opts:
    is_expand: false
    BITRISE_PROJECT_PATH: “./FoodSwitch/default.xcworkspace”
  • opts:
    is_expand: false
    BITRISE_SCHEME: FoodSwitch
  • opts:
    is_expand: false
    BITRISE_DISTRIBUTION_METHOD: app-store
    trigger_map:
  • push_branch: singleApp
    workflow: run_tests
  • pull_request_source_branch: “*”
    workflow: run_tests
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.