-
Notifications
You must be signed in to change notification settings - Fork 64
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 need libusb (m1 and Intel) support on MacOS #77
Comments
Hello, I implemented your solution to make it work on our Desktop App. It is not possible to detect the CPU architecture in a robust way at the moment with Flutter. To detect it, we used Flutter Platform to retrieve the full version of the OS and check if it contained the string "arm64" (M1). Here is the code: For the file quick_usb_desktop.dart
For the file quick_usb.podspec: We also had to retrieve the correct libraries on a Mac M1 and Intel. I'll put them there if it can saves someone some time: If you see ways to improve the code above, feel free to let me know. I know for a fact that adding both libs in the podspec file is not the best way of doing this. But I am no Mac expert and well.. it works ^_^' It would be nice if someone could add it for the next release. |
Thank you for suggesion but did'nt work. |
@AlphaBlend1975 : Strange. What are the flutter logs of your build? Did you do a flutter clean before launching the build? |
Any succsess on this issue? |
@AlphaBlend1975 Have you managed to include the .dylib file in the Frameworks build folder? If I manually try to include it I get "code object is not signed at all" cc: @juliendeuse-1 |
I found libusb v1.0.26 are support both (arm64 and x86_x64)
Could you please update source and library for support both version?
Your source of QuickUsbDesktop
class QuickUsbMacos extends _QuickUsbDesktop {
QuickUsbMacos() {
if(arm64) { //-- I do not know detect cpu architecture and possible?
_libusb = Libusb(DynamicLibrary.open('libusb-1.0.23_arm64.dylib'));
} else {
_libusb = Libusb(DynamicLibrary.open('libusb-1.0.23_x64.dylib'));
}
}
}
We need you to fixed and publish asap.
Thank you
The text was updated successfully, but these errors were encountered: