iOS Pipeline Definition #
A pipeline arranges jobs into stages so that the iOS build and the App Store deployment run as a single, automated workflow. This document describes a two-stage pipeline in which the build stage must complete successfully before the deployment stage starts.
1. Pipeline Stages #
| Order | Stage | Job | Purpose |
|---|---|---|---|
| 1 | stage-one | Mobile build job | Clones the repository, builds the iOS app and pushes the artifact to storage. |
| 2 | deploy-to-app-store | App Store deployment job | Deploys the artifact of the iOS service to App Store Connect. |
2. Create the Pipeline #
- 1
Click Application and open Pipeline Overview.
- 2
Click Add Pipeline, or edit an existing pipeline.
- 1
Enter the basic details of the pipeline. The example uses a Manual trigger and keeps 10 executions.
- 2
Add the build stage and configure it as described in section 3.
- 3
Add the deployment stage and configure it as described in section 4.
- 4
Click Save Workflow.
Read more: Pipeline Configuration (pipeline fields and stages)
3. Configure the Build Stage #
| Setting | What to configure |
|---|---|
| Environment | The Application Environment of the iOS service, for example ios-dev. |
| Service | The iOS service to build. For a single iOS app, select that app in both stages, unless the workflow deliberately builds additional services. |
| Job type and template | A mobile build job whose template runs ios_build_job with IOS_APP_BUILD and IOS_APP_PUSH. Verify the template and its revision rather than relying on the label shown on the canvas. |
4. Configure the Deployment Stage #
| Setting | What to configure |
|---|---|
| Environment and service | The iOS service and environment to deploy. |
| Job template | A template that runs IOS_APP_DEPLOY_TO_APPSTORE. Select an explicit mobile template when required. |
| Input Artifact | The example uses generated, so that the deployment consumes the artifact produced earlier in the workflow. Confirm that the resolved artifact belongs to the iOS service, comes from a successful build and exists in storage. |

Figure 1: Pipeline stages, approvals, services and generated artifact input
In the example, the build stage contains three services and the deployment stage contains one. This is an example configuration only.
5. Run and Verify #
- 1
Save the workflow and open the execution control in Pipeline Overview.
- 2
Review the service, environment, branch, artifact input and any runtime parameters.
- 3
Start the pipeline and complete the approval steps.
- 4
Confirm that the iOS build and the artifact push succeed.
- 5
Check the result and the logs of the deployment job.
- 6
Verify the uploaded build and its destination in App Store Connect.
Expected result: The stages complete successfully, the deployment consumes the correct artifact, and App Store Connect shows the expected build.