Search code examples
grpcgoogle-ads-apiapple-m1.net-6.0

Where to get libgrpc_csharp_ext.arm64.dylib?


When I try to run app with Google.Ads.GoogleAds nuget package on MacOS with M1 silicon I get the following error :

Unhandled exception. System.IO.FileNotFoundException: Error loading native library. Not found in any of the possible locations: .../libgrpc_csharp_ext.arm64.dylib

Cannot really find where to obtain libgrpc_csharp_ext.arm64.dylib or where can I find source for it and how to compile.


Solution

  • You can try to use prebuilt version of the native .dylib for Apple M1 CPUs:

    https://github.com/einari/Grpc.Core.M1

    https://www.nuget.org/packages/Contrib.Grpc.Core.M1/