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

Quick USB MacOS (Intel) Failed to load dynamic library 'libusb-1.0.23.dylib' #73

Open
AlphaBlend1975 opened this issue Sep 1, 2022 · 6 comments

Comments

@AlphaBlend1975
Copy link

flutter: quick_usb threw an error: Invalid argument(s): Failed to load dynamic library 'libusb-1.0.23.dylib': dlopen(libusb-1.0.23.dylib, 0x0001): tried: '/Volumes/Data/Projects/SWTH/qipos/build/macos/Build/Products/Debug/QiPOS Anywhere.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/./libusb-1.0.23.dylib' (no such file), '/Volumes/Data/Projects/SWTH/qipos/build/macos/Build/Products/Debug/QiPOS Anywhere.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/../../../libusb-1.0.23.dylib' (no such file), '/usr/lib/swift/libusb-1.0.23.dylib' (no such file), '/usr/lib/swift/libusb-1.0.23.dylib' (no such file), '/Volumes/Data/Projects/SWTH/qipos/build/macos/Build/Products/Debug/QiPOS Anywhere.app/Contents/MacOS/../Frameworks/libusb-1.0.23.dylib' (no such file), '/Volumes/Data/Projects/SWTH/qipos/build/macos/Build/Products/Debug/QiPOS Anywhere.app/Contents/MacOS/Frameworks/libusb-1.0.23.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libusb-1.0.23.dylib' (no such file), '/Volumes/Data/Projects/SWTH/qipos/build/macos/Build/Products/Debug/QiPOS Anywhere.app/Contents/MacOS/../Frameworks/libusb-1.0.23.dylib' (no such file), 'libusb-1.0.23.dylib' (no such file), '/usr/local/lib/libusb-1.0.23.dylib' (no such file), '/usr/lib/libusb-1.0.23.dylib' (no such file), '/Users/arkom/Library/Containers/app.qipos/Data/libusb-1.0.23.dylib' (no such file). The app may not function as expected until you remove this plugin from pubspec.yaml

@ot-repo
Copy link

ot-repo commented Sep 4, 2022

I got today exactly the same problem. Any idea how we can fix it?

@monkeyWie
Copy link

Same here!

@juliendeuse-1
Copy link

The library (libusb-1.0.23.dylib) contained in the package quick_usb does not work with intel chipset. The best way to make it work at the moment is to:

  1. Download a version of libusb that is compatible with your PC
  2. Download quick_usb localy and add it to your flutter project
  3. Change the original libusb found in the package (quick_usb/macos) with the one who is working with your PC

Hope it helps

@AlphaBlend1975
Copy link
Author

This error only on 0.4.0 version rollback to 0.3.1 working well on MacOS intel

@AlphaBlend1975
Copy link
Author

AlphaBlend1975 commented Sep 21, 2022

1st image build from v0.3.1 and 2nd image from 0.4.0
it look like plugin not correct for version 0.4.0

Screen Shot 2565-09-21 at 13 15 26

Screen Shot 2565-09-21 at 13 19 27

@juliendeuse-1
Copy link

I had the same problem and had to find a way to resolve it. You can find what I did in the following issue:
#77

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

4 participants