I have an iOS application built using Xamarin.iOS
.
I am in the process of migrating the application to .net6
.
To be able to build my application locally, I obviously need .net6
's SDK installed and I also need to install the iOS workload which is done using the following command:
dotnet install workload ios
Now, when I try to build the application in Azure DevOps using a macOS machine, it fails:
error NETSDK1147: To install these workloads, run the following command: dotnet workload install ios [/Users/runner/work/1/s/src/Application.iOS/Application.iOS.csproj]
Question
What is the recommended way to install the .net6
's iOS workload in Azure DevOps?
CodePudding user response:
It is much simpler than I originally thought. I used a Bash task and simply ran the following inlined command:
dotnet workload install ios