Search code examples
.netazureazure-devopsxamarin.ios.net-6.0

How to configure the Provisioning Profile for a .net6 iOS application in Azure DevOps?


I have migrated my iOS application from Xamarin.iOS to .net6 using the iOS workload.

Everything builds and runs locally on the iOS simulator.

The application's code resides in Azure DevOps and built there:

CI/CD

The dotnet build task throws the following error:

Xamarin.Shared.targets(1550,3): Error : Could not find any available provisioning profiles for Application.iOS on iOS

The Xamarin.iOS task had a place to specify the provisioning profile:

Xamarin.iOS Task

Question

How can I specify the iOS provisioning profile in the dotnet build task?


Solution

  • I just found out that there are two tasks that replaces part of what the Xamarin.iOS task was doing.

    The 1st one is the Install Apple Certificate task.

    I have uploaded my signing certificate and configured a variable to hold my password:

    Install Apple Certificate

    The 2nd one is the Install Apple provisioning profile and this is the answer to the question. I just had to download the Provisioning profile I retrieved from the Apple Developer account and uploaded it in the Task.

    Install Apple provisioning profile