Skip to main content

Bitrise Integration

Integrate App Store Connect CLI into Bitrise workflows using the official step

Official Bitrise Step

The setup-asc Bitrise step provides seamless integration for App Store Connect automation:
  • Install mode - Set up asc for subsequent steps
  • Run mode - Install and execute commands in one step
  • Environment variable support - Automatic authentication via Bitrise secrets
Repository: github.com/rudrankriyam/steps-setup-asc

Quick Start

Basic Workflow

bitrise.yml

Step Configuration

Inputs

*Required when mode: run

Install Mode

Installs asc and makes it available for subsequent steps:

Run Mode

Installs and executes a command in one step:

Complete Workflows

TestFlight Distribution

bitrise.yml

App Store Submission

bitrise.yml

Metadata Sync

bitrise.yml

Crash and Feedback Monitoring

bitrise.yml

Authentication Setup

Bitrise Secrets

  1. Navigate to your app’s Workflow Editor
  2. Select the Secrets tab
  3. Add the following secrets:

Base64 Encoding Private Key

Environment Variables in Workflow

Secrets are automatically exposed as environment variables:

Advanced Patterns

Conditional Workflows

Multiple App Deployment

Retry Logic

Stack Configuration

Required Stack

Use the Xcode stack for iOS/macOS builds:

Linux Stack for Metadata Only

For metadata-only operations, Linux stacks work:

Debugging

Enable Debug Logging

Test Authentication

Troubleshooting

  • Verify the step URL: git::https://github.com/rudrankriyam/steps-setup-asc.git@main
  • Check your Bitrise stack supports Git-based steps
  • Ensure you have network connectivity to GitHub
  • Verify secrets are set in Bitrise Secrets tab
  • Check “Expose for Pull Requests” if testing PRs
  • Ensure private key is properly base64-encoded without newlines
  • Test credentials locally with the same key
  • Verify mode: install was run before using asc
  • Check step order in workflow
  • Use mode: run to combine install and execution
  • Increase timeout in workflow:
  • Check IPA file size and network speed
  • Consider splitting large uploads

Best Practices

Use install mode for multiple commands

Install once, run many commands:

Set timeouts

Configure appropriate timeouts:

Use Bitrise secrets

Never hardcode credentials. Always use secrets.

Enable retry for uploads

Implement retry logic for network-dependent operations.

Bitrise-Specific Features

Expose for Pull Requests

Allow PR builds to use secrets (use with caution):
  1. Go to Secrets tab
  2. Enable Expose for Pull Requests for required secrets
  3. Consider using separate staging credentials for PRs

Stack Selector

Choose appropriate stack based on operation:
  • Xcode stack: iOS/macOS builds and uploads
  • Linux stack: Metadata, monitoring, API-only operations

Build Artifacts

Store outputs using deploy-to-bitrise-io: