Official CircleCI Orb
Theasc orb provides reusable commands and jobs for CircleCI pipelines:
- Install command - Set up
ascin your jobs - Pre-built jobs - Ready-to-use workflows for common tasks
- Caching support - Automatic binary caching for faster builds
Quick Start
Basic Configuration
.circleci/config.yml
Orb Commands
Install Command
Installs theasc CLI:
| Parameter | Description | Default |
|---|---|---|
version | Version to install | latest |
Run Command
Installs and executes anasc command:
| Parameter | Description | Required |
|---|---|---|
command | Command to execute | Yes |
version | Version to install | No |
Pre-Built Jobs
TestFlight Upload Job
| Parameter | Description | Required |
|---|---|---|
app-id | App Store Connect app ID | Yes |
ipa-path | Path to IPA file | Yes |
version | asc version to use | No |
App Store Submit Job
| Parameter | Description | Required |
|---|---|---|
app-id | App Store Connect app ID | Yes |
app-version | Version to submit | Yes |
asc-version | asc CLI version to use | No |
Complete Workflows
Full TestFlight Pipeline
.circleci/config.yml
App Store Release Pipeline
.circleci/config.yml
Metadata Sync Workflow
.circleci/config.yml
Scheduled Monitoring
.circleci/config.yml
Authentication Setup
CircleCI Contexts
- Navigate to Organization Settings > Contexts
- Create a new context:
app-store-connect - Add environment variables:
| Variable | Description |
|---|---|
ASC_KEY_ID | App Store Connect Key ID |
ASC_ISSUER_ID | App Store Connect Issuer ID |
ASC_PRIVATE_KEY_B64 | Base64-encoded private key |
ASC_APP_ID | Your app ID (optional) |
Base64 Encoding
Using Contexts in Workflows
Project-Level Variables
Alternatively, set variables at the project level:- Go to Project Settings > Environment Variables
- Add the same variables as above
Advanced Patterns
Matrix Builds
Conditional Execution
Executors
macOS Executor
For build operations:Docker Executor
For API-only operations:Caching
Cache dependencies and build artifacts:Troubleshooting
Orb not found
Orb not found
- Verify orb is published:
circleci orb list rudrankriyam - Check CircleCI version is 2.1+
- Ensure organization allows third-party orbs
Authentication failed
Authentication failed
- Verify context variables are set correctly
- Check job references the correct context
- Ensure private key is base64-encoded without newlines
- Test credentials locally
Resource class unavailable
Resource class unavailable
Build timeout
Build timeout
- Increase job timeout:
- Set environment variables:
Best Practices
Use contexts for secrets
Centralize credentials in contexts instead of project variables.
Cache dependencies
Speed up builds with caching:
Pin orb versions
Use specific versions for stability:
Use approval jobs
Require manual approval for production:
