Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use Usb.Events on MAC (arm64) in an osx-x64 targeted application with the latest release #45

Open
bow-meow opened this issue May 22, 2024 · 1 comment

Comments

@bow-meow
Copy link

Library version

11.1.0.1

OS, version, architecture (32 bit / 64 bit)

MAC, Sonoma, arm64/x64

Describe the bug

using an osx-x64 application on an m2 Mac (arm64) with version 11.1.0.1 of Usb.Events does not work.

To Reproduce

  1. Create a C# window application that targets osx-x64
  2. Reference Usb.Events version 11.1.0.1
  3. Create an instance of UsbEventWatcher and then dispose it.
  4. Run the application and you will be met with a linker problem, the UsbEventWatcher.Mac.dylib needs to start with lib (libUsbEventWatcher.Mac.dylib) to be linked correctly
  5. once that has been linked correctly and you run the application, upon disposing of usbeventwatcher, it will error saying it can't find libUsbEventWatcher.Mac.dylib x64 version, or that it can't use the current x64 version on an arm64 os.

Expected behavior

Everything should just work.

Additional context

Once you get passed the linking issue, version 10.1.0 of Usb.Events works fine, the latest does not.

@Jinjinov
Copy link
Owner

Thank you for noticing this.

I have no free time these past few months and some health problems.

I am sorry to say that I don't know when I will look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants