Service Configuration

2 min read

iOS Service Configuration #

Overview

An iOS service represents an iOS application in BuildPiper. This document describes how to create the service, select a build strategy, and link the service to an Application Environment, which creates the Service Environment in which the build and deployment are configured.

  1. 1

    Click Application and select the application.

  2. 2

    Click Service Overview.

  3. 3

    Click the add service button.

  1. 1

    Enter the Service Name, for example attendance-ios.

  2. 2

    Set Service Type to iOS and select the Business Function when it is shown.

  3. 3

    Choose the build strategy described below.

  4. 4

    Click Save & Continue and select the existing Application Environment, for example ios-dev.

  5. 5

    Configure the service-specific fields described in the table below and save the mapping.

Swipe horizontally to view all columns →
Build strategy How to choose
Build for every environment Choose this when each environment needs its own build configuration. The configuration page can describe this as Build for all environments. The example uses this option.
Build once and promote Choose this when your process reuses a built artifact across environments, if the option is offered. Confirm that the artifact is suitable for reuse and that the job template supports the promotion workflow.
Original BuildPiper Mobile Workload 04c iOS Service Configuration screenshot or diagram 1

Figure 1: Environment Basic Details

Swipe horizontally to view all columns →
Field What to configure
Select Environment The target environment, for example Dev, QA or Prod, that you want to link to this service and configure it for. The example uses ios-dev.
Registry Configuration The artifact mode that the workflow needs. The example selects Provide only push registry.
Artifactory The configured storage integration, for example mobile-ci-artifactory.
Artifact Name The service destination or naming prefix, for example attendance-ios/dev/ios-dev.
Allow Manual Build Select Yes to allow users to trigger a build for this environment manually from the BuildPiper dashboard.
Allow Manual Deploy Select Yes to allow users to start a deployment to this environment manually.
Do you want to push data for insights Select the option that your organisation’s reporting workflow requires.
Bundle Identifier The bundle identifier of the main iOS app target, for example com.company.appname. You can find it in Xcode under Target → Signing & Capabilities → Bundle Identifier. It must match the App ID and the provisioning profile that are used for signing.
Select Job Template Version Select the appropriate Job Template Version (for example, Job Template Version 2) and choose the relevant Mobile or platform-specific template for the iOS workflow. For more information, refer to the Job Template Documentation.

Note: Other storage integrations can show additional repository or path fields. Keep them aligned with the artifact destination of the Application Environment.

2. Identifiers at a Glance #

Swipe horizontally to view all columns →
Identifier What it identifies
Bundle Identifier Uniquely identify the iOS application. It must match the app configured in App Store Connect and the provisioning profile.
Scheme Defines the Xcode build configuration and actions used to build the application. It is configured in App Packaging
Xcode Workspace Specifies the path to the Xcode project or workspace used by the build job. It is configured in App Packaging.
Provisioning Profile Defines the signing and distribution configuration for the iOS application. It is selected in App Packaging.
Artifact Name The artifact destination or naming prefix. It is set in the Service Environment.
Artifact Path The output location that the build workflow expects. It is set in App Packaging.
Artifact Tag Identifies the specific stored build artifact selected for deployment
Version Code The BuildPiper field label. Verify how your job template maps it to the Apple build number and app version.

Read more: iOS Job Templates (for more information about job templates)

Job Template V2 and V3 Documentation