Sitemap

Member-only story

Azure Pipeline for iOS apps

uฤŸur
4 min readJul 27, 2023

Motivation

If you are building an iOS app on Azure DevOps, you will notice that pipeline tasks related to Apple are not well maintained. So relying on xcodebuild and altool scripts was my best bet.

1. Using Automatic Code Signing

For automatic signing you need to create a Apple Development certificate. Download and add it to keychain.

Enable Automatically manage signing and select Team. Push your changes to git remote.

Press enter or click to view image in full size

Create a new pipeline on Azure DevOps. Your newly generated azure-pipelines.yml will look like this:

trigger:
- main

pool:
vmImage: 'macos-latest'

steps:
- task: Xcode@5
inputs:
actions: 'build'
scheme: ''
sdk: 'iphoneos'
configuration: 'Release'
xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
xcodeVersion: 'default' # Options: 8, 9, 10, 11, 12, default, specifyPath

Add Secure Files to Azure DevOps

Add the following files to pipeline -> library -> secure files as below.

  1. Exported apple development certificate from keychain as .p12 file. Seeโ€ฆ

Create an account to read the full story.

The author made this story available to Medium members only.
If youโ€™re new to Medium, create a new account to read this story on us.

Or, continue in mobile web
Already have an account? Sign in

uฤŸur

Responses (1)

Unknown user

Write a response

Hello! Do you have a bash script for executing uint tests with azure pipelines also? (eg xcodebuild -test ...). I am using xcode@5, that is provided by ms but still with no luck