When I tried to build Xamarin Forms iOS app in the App Center, it is checking the reference of Android and throwing exceptions/issues.
Can anyone know why is this happening ?
PS: Both Android and iOS builds are working fine in local.
Thanks in advance.
Looks like your iOS pipeline is trying to use *.sln file of the whole solution. I guess you should try to build only *.iOS.csproj directly. Below an example of the build iOS project task from *.yml:
- task: XamariniOS@1
displayName: Build App.iOS
inputs:
solutionFile: 'App.iOS/App.iOS.csproj'
configuration: '$(buildConfiguration)'
packageApp: true
runNugetRestore: false
args: '/p:OutputPath=$(outputDirectory)/'
buildToolOption: 'msbuild'
clean: true