dotnet-maui-check icon indicating copy to clipboard operation
dotnet-maui-check copied to clipboard

Running on Apple m1 Mac (mini)

Open wallym opened this issue 3 years ago • 5 comments

Not an issue. I just wanted to share what I had to do to get maui-check to run on my m1 Mac mini.

  • Install .net core 3.1 for x64 Mac.
  • Install .net core 6 for x64 Mac.
  • install .net core 5 for arm Mac.
  • add the .dotnet/tools directory in my personal folder to the path.

I'll also share that I had the .net core 5 for x86 Mac already installed, so I am not sure if that helped in any way.

wallym avatar May 28 '21 12:05 wallym

btw, great tool Jon.

wallym avatar May 28 '21 12:05 wallym

@wallym did the "Install Android emulator" step worked for you?

tscholze avatar Jun 02 '21 12:06 tscholze

IIRC, I had to install the android emulator manually, but don't quote me on that.

wallym avatar Jun 03 '21 13:06 wallym

Thanks, this helped me. Probably a silly reminder but just in case, don't forget to sudo run this (also needs to be run from an elevated command prompt on Windows).

EDIT: Definitely don't sudo this - it messes up all your permissions

matt-goldman avatar Jun 06 '21 04:06 matt-goldman

I am getting this error when I try to run maui-check on an M1 Macbook Air.

Failed to load /usr/local/share/dotnet/host/fxr/6.0.0-preview.5.21301.5/libhostfxr.dylib, error: dlopen(/usr/local/share/dotnet/host/fxr/6.0.0-preview.5.21301.5/libhostfxr.dylib, 1): no suitable image found. Did find: /usr/local/share/dotnet/host/fxr/6.0.0-preview.5.21301.5/libhostfxr.dylib: mach-o, but wrong architecture /usr/local/share/dotnet/host/fxr/6.0.0-preview.5.21301.5/libhostfxr.dylib: mach-o, but wrong architecture The library libhostfxr.dylib was found, but loading it from /usr/local/share/dotnet/host/fxr/6.0.0-preview.5.21301.5/libhostfxr.dylib failed

  • Installing .NET prerequisites might help resolve this problem. https://go.microsoft.com/fwlink/?linkid=2063366

Here is my dotnet info:

.NET SDK (reflecting any global.json): Version: 6.0.100-preview.5.21308.63 Commit: 3cf5784e2e

Runtime Environment: OS Name: Mac OS X OS Version: 11.4 OS Platform: Darwin RID: osx.11.0-arm64 Base Path: /usr/local/share/dotnet/sdk/6.0.100-preview.5.21308.63/

Host (useful for support): Version: 6.0.0-preview.5.21301.5 Commit: ec3e0b276b

.NET SDKs installed: 3.1.410 [/usr/local/share/dotnet/sdk] 5.0.301 [/usr/local/share/dotnet/sdk] 6.0.100-preview.5.21308.63 [/usr/local/share/dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 3.1.16 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.5.21301.17 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.5.21301.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download

u2m4c6 avatar Jun 14 '21 21:06 u2m4c6