Redth / dotnet-maui-check

.NET MAUI Check tool
MIT License
479 stars 79 forks source link

Running on Apple m1 Mac (mini) #38

Open wallym opened 3 years ago

wallym commented 3 years ago

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

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 commented 3 years ago

btw, great tool Jon.

tscholze commented 3 years ago

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

wallym commented 3 years ago

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

matt-goldman commented 3 years ago

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

u2m4c6 commented 3 years ago

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


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