Skip to content

Azure CI/CD iOS Integration

This guide explains how to apply DoveRunner Mobile App Security SDK to an iOS project managed by Azure DevOps Pipelines. The following project types are supported:

  • Xcode native (Swift / Objective-C)
  • Flutter
  • Ionic / Cordova
  • React Native

The preparation steps are the same for all platforms. The build script differs per platform — use the platform-specific script from AzureScripts.txt included in the SDK package.


Step 1 — Prepare Certificate and Profile

Section titled “Step 1 — Prepare Certificate and Profile”

Because DoveRunner SDK re-signs the IPA during generate_hash execution, you need to include a distribution certificate and provisioning profile in your source repository before setting up the pipeline.

  1. Open Keychain Access (Launchpad → Other → Keychain Access). Select login from the left panel.

    Keychain Access login

  2. Select My Certificates from the top tab. Find and select your App Store distribution certificate.

    My Certificates

  3. Right-click the certificate and select Export…

    Export certificate

  4. Set the save location to your project folder, the filename to distribution.p12, and the format to Personal Information Exchange (.p12).

    Save as P12

  5. Click Save and enter a password when prompted. Note this password — you will register it as a pipeline variable in the next step (CERTIFICATE_PASSWORD).

Place the App Store distribution provisioning profile downloaded from the Apple Developer site in your project folder. The file must be named profile.mobileprovision.

After adding both files, push them to your source repository before proceeding. The Azure pipeline will not build correctly until this is done.


Step 2 — Configure Azure DevOps Variables

Section titled “Step 2 — Configure Azure DevOps Variables”
  1. Open your project in Azure DevOps, navigate to the active Pipeline, and click the Variables button in the top-right corner.

    Pipeline Variables button

  2. Click New Variable and add the following variables one by one:

    VariableValue
    APPLE_IDYour Apple account email
    APP_SPECIFIC_PASSWORDYour app-specific password
    CERTIFICATE_PASSWORDThe password set when exporting the P12 certificate
    TEAM_IDYour Apple Developer Team ID
    PROVISIONING_PROFILE_NAMEThe name of the provisioning profile used to deploy the app

    Adding APPLE_ID variable

  3. For APP_SPECIFIC_PASSWORD and CERTIFICATE_PASSWORD, enable Keep this value secret to hide the values from pipeline logs.

    Secret variables

  4. Confirm all five variables are registered correctly.

    All variables registered


Open the pipeline editor in Azure DevOps or edit the YAML file directly in your repository.

Pipeline editor

Replace the existing YAML content with the script from the SDK package:

  • Xcode native projects — use the script in Fastlane Scripts/azure-pipeline.yml
  • Flutter / Ionic / Cordova / React Native — use the platform-specific script from AzureScripts.txt

In the script, update the following values to match your project:

FieldDescription
triggerbranchesThe branch name that triggers the pipeline build
Agent pool nameThe name of your Azure pipeline agent pool

Push the updated YAML to your repository. The pipeline will run with DoveRunner Mobile App Security SDK applied.

Build in progress

Build completed

When the pipeline completes successfully, the IPA has been sealed with DoveRunner Mobile App Security and uploaded to App Store Connect. The app is ready for TestFlight testing or App Store submission.