Founntain / osuplayer

Official osu!player repository. osu!player is a music player for the game osu! made by Dean 'peppy' Herbert. Written in the cross-platform framework AvaloniaUI
MIT License
67 stars 6 forks source link

Can't run OsuPlayer on Apple Silicon/ARM64 Macs #283

Closed JacksonChen666 closed 1 month ago

JacksonChen666 commented 2 months ago
$ ./OsuPlayer
Failed to load /Users/jackson/.asdf/installs/dotnet/8.0.204/host/fxr/8.0.4/libhostfxr.dylib, error: dlopen(/Users/jackson/.asdf/installs/dotnet/8.0.204/host/fxr/8.0.4/libhostfxr.dylib, 0x0001): tried: '/Users/jackson/.asdf/installs/dotnet/8.0.204/host/fxr/8.0.4/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/jackson/.asdf/installs/dotnet/8.0.204/host/fxr/8.0.4/libhostfxr.dylib' (no such file), '/Users/jackson/.asdf/installs/dotnet/8.0.204/host/fxr/8.0.4/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
The library libhostfxr.dylib was found, but loading it from /Users/jackson/.asdf/installs/dotnet/8.0.204/host/fxr/8.0.4/libhostfxr.dylib failed
  - Installing .NET prerequisites might help resolve this problem.
     https://go.microsoft.com/fwlink/?linkid=2063366
$ file OsuPlayer
OsuPlayer: Mach-O 64-bit executable x86_64

While a x86_64 to ARM64 translation is a thing (which I do have installed), dotnet doesn't seem to like the architecture mismatch anyways.

Founntain commented 2 months ago

We have to look into it if Avalonia supports ARM64 and if we can include a binary for that. I'll tag @Cesan to look into it