woodemi / quick.flutter

55 stars 64 forks source link

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

Open AlphaBlend1975 opened 2 years ago

AlphaBlend1975 commented 2 years ago

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

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

monkeyWie commented 2 years ago

Same here!

juliendeuse-1 commented 2 years ago

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

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

AlphaBlend1975 commented 2 years ago

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

I had the same problem and had to find a way to resolve it. You can find what I did in the following issue: https://github.com/woodemi/quick.flutter/issues/77