If you can build it normally withoutthe grpc package, your issue is related to the Azure DevOps, Azure DevOps is currently not supported in the Q&A forums, the supported products are listed over here: https://learn.microsoft.com/en-us/answers/products (more to be added later on). For the related questions about Azure DevOps you can ask in here
https://developercommunity2.visualstudio.com/report?space=21&entry=problem
Cannot build Xamarin iOS on Microsoft Azure Hosted Agent with GRPC Core ( MTOUCH : error MT0009: Error while loading assemblies: .../grpc_csharp_ext.x64.dll)
We want to build our Xamarin iOS using Microsoft Azure Hosted agent with MacOS VM but we are having an error when it tries to "CompileToNative"
MTOUCH : error MT0009: Error while loading assemblies: /Users/runner/.nuget/packages/grpc.core/2.31.0/runtimes/win/native/grpc_csharp_ext.x64.dll [/Users/runner/work/1/s/ProjectName/ProjectName.iOS/ProjectName.iOS.csproj]
Our yaml file.
pool:
vmImage: 'macOS-latest'
steps:
# To manually select a Xamarin SDK version on the Hosted macOS agent, enable this script with the
SDK version you want to target
# https://go.microsoft.com/fwlink/?linkid=871629
- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_6_0
displayName: 'Select Xamarin SDK version'
enabled: true
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'
- task: XamariniOS@2
inputs:
solutionFile: '**/*.sln'
configuration: 'Release'
buildForSimulator: true
packageApp: false
There is similar error similar to this https://forums.xamarin.com/discussion/32126/error-while-loading-assembles-mt0009-mtouchtask Bu the accepted does not help us because it is running on Microsoft hosted agent environment.
1 answer
Sort by: Most helpful
-
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 79,781 Reputation points Microsoft Vendor
2021-01-20T07:19:34.907+00:00