question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DllNotFoundException on Apple Silicon chips

See original GitHub issue

Hi! I’ve tried to get list of all MIDI devices on my MacBook m1 with .NET 6 but InputDevice.GetAll() throws

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'Melanchall_DryWetMidi_Native64' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(libMelanchall_DryWetMidi_Native64, 0x0001): tried: 'libMelanchall_DryWetMidi_Native64' (no such file), '/usr/local/lib/libMelanchall_DryWetMidi_Native64' (no such file), '/usr/lib/libMelanchall_DryWetMidi_Native64' (no such file), '/Users/dvorobey/RiderProjects/Piano/Piano/bin/Debug/net6.0/libMelanchall_DryWetMidi_Native64' (no such file) at Melanchall.DryWetMidi.Multimedia.CommonApi64.GetApiType() at Melanchall.DryWetMidi.Multimedia.CommonApi64.Api_GetApiType() at Melanchall.DryWetMidi.Multimedia.MidiDevicesSession.GetSessionHandle() at Melanchall.DryWetMidi.Multimedia.MidiDevice.EnsureSessionIsCreated() at Melanchall.DryWetMidi.Multimedia.InputDevice.GetAll() at InputDeviceExample.Program.Main(String[] args) in /Users/dvorobey/RiderProjects/Piano/Piano/Program.cs:line 11 Here is a code that I tried to launch static void Main(string[] args) { var devices = InputDevice.GetAll(); } What I doing wrong?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:43 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
daltzctrcommented, Jul 29, 2022

@melanchall the nativeless version of this project works on Android and iOS great 😉

1reaction
melanchallcommented, Jul 27, 2022

I have a proper word for the results – AWESOME! Counts of passed tests are correct:

  • Core: 6317
  • Multimedia: 516

As for LoopbackDevice built by me, I built it using universal format, merging x86_64 and arm64 architectures. But maybe it works fine for dylibs, but need a bit different steps for apps. I’ve posted the question on Stack Overflow.

Man, Apple really shot themselves in the foot with this new architecture haha.

Absolutely agreed with you 😃

Well, I’ll build a prerelease NuGet package and let you know.

And many many many thank you, @ThaddeusChristopher. Support of Apple Silicon chips is a critical task in my opinion and I really don’t know how it could be solved without you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vivox DllNotFoundException error on Macbook with Apple ...
Hi everyone I'm implementing Unity Vivox Voice Chat Service to my Unity project on my Macbook with M1 Apple Silicon, but I got...
Read more >
Need help to run unit tests of .NET library on macOS ...
I'm developing an open source .NET library to work with MIDI – DryWetMIDI. Recently the issue was reported – DllNotFoundException on Apple Silicon...
Read more >
On M1 mac, Fusion always fails with: DllNotFoundException
I tried following the `Fusion 100` tutorial as well as download and run the Tanknarog sample. Unfortunately for both Fusion fails when trying ......
Read more >
"command not found" running universal console app on ...
I have the issue on my library – DllNotFoundException on Apple Silicon chips. It's fixed now but we observed strange behavior trying to...
Read more >
DLL targeted for CPU Intel64 is missing when running build ...
Actual result: Building for "Intel 64-bit + Apple silicon" produces an error in build ("DLLNotFoundException"), but works with "Intel ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found