Application Configuration

6 min read

iOS Application Configuration #

Overview

Start by creating the application in BuildPiper and configuring the prerequisites for the iOS workflow. This includes connecting the source repository, onboarding the required signing and App Store Connect credentials, configuring the Mac runner and artifact repository, and setting up the application environment. Complete each section in the specified order before creating the iOS service.

Swipe horizontally to view all columns →
Section Task Portal
1 Review the Configuration Levels —
2 Configure the Mac Runner Endpoint Super Admin
3 Configure the Artifactory, create the Application and onboard the Repository Super Admin / User
4 Add the iOS Signing Credential User
5 Add the App Store JSON Credential User
6 Create the Application Environment User

1. Configuration Levels #

BuildPiper manages iOS configuration at two levels.

Swipe horizontally to view all columns →
Level What it manages
Application Environment The shared resources and integrations, such as artifact storage and credentials.
Service Environment One service linked to an Application Environment. It manages the service-specific configuration and mappings.

For example, when the service attendance-ios is associated with the Application Environment ios-dev, BuildPiper creates the Service Environment attendance-ios → ios-dev.

Note: Always check the selected environment before you change App Packaging or trigger an action.

2. Configure the Mac Runner Endpoint #

The Mac Runner Endpoint specifies the Mac host’s IP address and login account that BuildPiper uses to execute iOS build commands over SSH. Configure this endpoint in the Super Admin portal to enable remote build execution.

  1. 1

    Sign in to the Super Admin portal and open System Settings.

  2. 2

    Search for mac.

  3. 3

    Select Feature Flags & Compatibility and open Mac Runner Endpoint.

  4. 4

    Enter the Mac IP address and user in the JSON format described in the table below, replacing the example values.

  5. 5

    Click Apply Immediately or Apply Async, and confirm that the configuration is applied.

Original BuildPiper Mobile Workload 04b iOS Application Configuration screenshot or diagram 1

Figure 1: System settings search and Mac Runner Endpoint

Original BuildPiper Mobile Workload 04b iOS Application Configuration screenshot or diagram 2

Figure 2: Mac runner JSON input with IP address and login user

Swipe horizontally to view all columns →
JSON key Value
ip The IP address of the Mac that is reachable from the BuildPiper execution environment.
user The macOS login account under which the iOS commands run.

The screenshot shows an example endpoint. Replace the IP address and the user with the values of your deployment.

2.1 Verify the Mac Build Environment #

A saved endpoint does not establish that the host can build the project. Verify the runner before you create the first build.

  1. 1

    Confirm that the Mac is running and reachable from the BuildPiper execution environment.

  2. 2

    Confirm that SSH login works with the configured user and your organisation’s authentication.

  3. 3

    In the same login context, run xcodebuild -version to confirm that Xcode and its command-line tools are available.

  4. 4

    Confirm that the project dependencies and the build configuration are available to the workflow.

Expected result: The Mac user can access Xcode and the project configuration. Resolve any access or toolchain failure before you trigger a remote build.

Note: Cluster and VM mappings are not required for the iOS workflow described here. The Mac runner is the required resource. Configure other infrastructure only for the other service types that the application contains.

3. Configure the Artifactory, Application and Repository #

These tasks are the same as for Android, with the iOS-specific differences listed below. For the steps and the form fields, see the Android Application Configuration document.

Swipe horizontally to view all columns →
Task iOS-specific notes
Artifactory (Super Admin) BuildPiper supports MinIO, Nexus, and Amazon S3 as artifact repositories. In this example, select MinIO and specify the bucket used to store the iOS build artifacts. After clicking Create, click Test and verify that the connection status is displayed as Connected..
Application (Super Admin) Enter the application name, the description and the policy template. Application creation generates the mobile job template, typically named [application_name]_mobile-v2.
Repository (User) Onboard the repository that contains your iOS project. Click Test Connection, confirm Connection Established, and then save.
Original BuildPiper Mobile Workload 04b iOS Application Configuration screenshot or diagram 3

Figure 3: MinIO Artifactory connection fields

Original BuildPiper Mobile Workload 04b iOS Application Configuration screenshot or diagram 4

Figure 4: Repository connection and group permissions

Read more: Application Configuration (Android)

4. Add the iOS Signing Credential #

This task is performed in the User portal.

  1. 1

    Click Integration.

  2. 2

    Click Credential Management.

  3. 3

    Click Add Credential.

  1. 1

    Select iOS Signing Config.

  2. 2

    Enter the Credential Name, for example ios-sign-config.

  3. 3

    Under Certificate File Details, upload the signing certificate (.p12) file.

  4. 4

    Enter the Certificate File Password, which is the password used when the certificate was exported.

  5. 5

    Under Profile File Details, upload the matching .mobileprovision file.

  6. 6

    Enter the Profile ID, which is the UUID or ID of the provisioning profile.

  7. 7

    Select the user groups for View Permissions and Write Permissions.

  8. 8

    Click Save and confirm that the credential appears in the listing.

Original BuildPiper Mobile Workload 04b iOS Application Configuration screenshot or diagram 5

Figure 5: Add Credential form for the iOS signing configuration

Swipe horizontally to view all columns →
Input Check before saving
Certificate file and password Upload the intended .p12 file and use the correct export password.
Provisioning profile Use the profile for the intended app and distribution method.
Profile ID Match the identifier to the uploaded profile.
User group access Grant access to the groups that configure and run the workflow.

Ensure that the provisioning profile matches the bundle identifier, signing certificate, and distribution method. Keep these values aligned whenever you update or replace a credential. After changing a certificate or provisioning profile, verify both the environment credential selection and the provisioning profile configured in the service before rebuilding the application.

Note: A certificate signing request (CSR) is used to create the Apple certificate. It is not the .p12 file that you upload to BuildPiper. Download or regenerate an expired or invalid provisioning profile from the Apple Developer account.

Expected result: The signing credential is available in Select iOS Signing Credentials when you configure the Application Environment.

5. Add the App Store JSON Credential #

This task is performed in the User portal.

  1. 1

    Click Integration.

  2. 2

    Click Credential Management.

  3. 3

    Click Add Credential.

  1. 1

    Select JSON Cred and enter a name, for example ios-json-creds.

  2. 2

    Prepare the JSON that contains the three keys described below.

  3. 3

    Paste the JSON into JSON Credential, replacing the placeholders with the App Store Connect API key values.

  4. 4

    Select the user groups for View Permissions and Write Permissions.

  5. 5

    Click Save and confirm that the credential appears in the listing.

Original BuildPiper Mobile Workload 04b iOS Application Configuration screenshot or diagram 6

Figure 6: App Store JSON credential fields

Swipe horizontally to view all columns →
JSON key Value to provide Example
key_id The App Store Connect API Key ID. <app-store-connect-key-id>
issuer_id The issuer identifier of the API credential. <issuer-id>
key_content The complete private key, including the BEGIN and END PRIVATE KEY lines. —–BEGIN PRIVATE KEY—–n<private-key-content>n—–END PRIVATE KEY—–

Note: Keep key_content as a valid JSON string and write each line break of the private key as n. The example shows the structure only. Store real credential values only in the approved credential management workflow.

Expected result: The credential is available in Select AppStore Credentials when you configure the environment.

6. Create the Application Environment #

This task is performed in the User portal.

  1. 1

    Click Application and select the application.

  2. 2

    Click Environment Overview.

  3. 3

    Click Add Env.

  1. 1

    Select the Environment Type and enter the Environment Name, for example ios-dev.

  2. 2

    Review Enable Hyper Build. The example uses No.

  3. 3

    Set Allow Manual Build and Allow Manual Deploy according to your team workflow.

  4. 4

    Enable Deploy to AppStore and select the App Store JSON and iOS signing credentials.

  5. 5

    Select the Artifactory and the bucket or repository destination, and complete the storage fields that the integration shows.

  6. 6

    Save the environment and confirm that it appears in Environment Overview.

Original BuildPiper Mobile Workload 04b iOS Application Configuration screenshot or diagram 7

Figure 7: Add Environments form with Deploy to AppStore enabled

Swipe horizontally to view all columns →
Field Selection
Select AppStore Credentials The App Store Connect credentials that BuildPiper uses to authenticate and to upload the application builds for distribution. Select the JSON credential that contains the App Store Connect API key.
Select iOS Signing Credentials The credentials that BuildPiper uses to sign the iOS app, which ensures the integrity and authenticity of the build and authorises it for distribution. Select the iOS signing credential that contains the certificate and the provisioning profile.

Build-only workflow: You can use Trigger Build to build and store the output without starting a deployment. The environment form places the iOS signing selection inside the App Store section, so confirm the signing credential mapping that your job template needs.

Expected result: The Application Environment holds the artifact storage and the deployment credentials that its services need.