Member-only story
Azure Pipeline for iOS apps
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.
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, specifyPathAdd Secure Files to Azure DevOps
Add the following files to pipeline -> library -> secure files as below.
- Exported apple development certificate from keychain as .p12 file. Seeโฆ