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.
- 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
- 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**
- task: XamariniOS@2
Hope this information will help others too; who are receiving errors while uploading IPA built from xamarin.forms app to testflight / App Store.