How to setup devops pipeline for xamarin.forms ios app to build with ios 17 and xcode 15

Vinayak Nikam 0 Reputation points
2024-02-23T09:37:28.5833333+00:00

How to setup devops pipeline for xamarin.forms ios app to build with ios 17 and xcode 15

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vinayak Nikam 51 Reputation points
    2024-03-06T11:10:34.9866667+00:00

    I was able to build my xamarin.forms app successfully with xcode 15 (iOS 17) on azure hosted mac agent macOS-13 by making below changes to my yml.

    1. I added below installation scripts at the very beginning in the job steps.
    • task: Bash@3
        displayName: Install Xamarin
      
        inputs:
      
          targetType: 'inline'
      
          script: |
      
            brew install --cask xamarin-ios
      
            brew install --cask xamarin-android
      
    1. Previously runNugetRestore was false in below task; due to which build was failing. I changed it to true and build was successful.
      • task: XamariniOS@2
          displayName: Build iOS Project
        
          inputs:
        
            solutionFile: $(System.DefaultWorkingDirectory)/pathtoslnfile.sln
        
            configuration: $(BuildConfiguration)
        
            clean: true
        
            packageApp: true
        
            buildForSimulator: false
        
            **runNugetRestore: true**
        

    Hope this information will help others too; who are receiving errors while uploading IPA built from xamarin.forms app to testflight / App Store.

    1 person found this answer helpful.

  2. Bruce (SqlWork.com) 56,286 Reputation points
    2024-02-26T17:00:40.76+00:00

    azure DevOps has MacOs build servers you can use. we are only 2 months from Xamarin support ending. but see: https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/xamarin?view=azure-devops&tabs=yaml

    0 comments No comments