Problem installing with dotnet on M1 MacOS architecture

Copper Contributor

Hello

I have installed :
dotnet-sdk-3.1.417-osx-x64.pkg
on a MAC mini M1 arm64
and I have the following issue when I run dotnet :
/usr/local/share/dotnet/dotnet FootWorkService.dll
Failed to load A, error: dlopen(/usr/local/share/dotnet/host/fxr/6.0.3/libhostfxr.dylib, 0x0001): tried: '/usr/local/share/dotnet/host/fxr/6.0.3/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libhostfxr.dylib' (no such file), '/usr/lib/libhostfxr.dylib' (no such file)
The library libhostfxr.dylib was found, but loading it from /usr/local/share/dotnet/host/fxr/6.0.3/libhostfxr.dylib failed
- Installing .NET Core prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=2063366

There is no equivalent of dotnet-sdk-3.1.417-osx-x64.pkg for arm64 so what should I do ?

Best regards

1 Reply

Hi @OlivierPaillat

Thanks for posting your issue here.

However this platform is used for how-to discussions and sharing best practices for building any app with .NET.Since your issue is a technical question, welcome to post it in Microsoft Q&A forum, the support team and communities on Microsoft Q&A will help you for any technical questions.
Besides, it will be appreciated if you can share it here once you post this technical question Microsoft Q&A.
Best Regards,
Lan Huang