libusb not found on ARM Macs

While updating the Meadow.OS on an ARM Mac (M1, M1 Pro, M2, etc.), you may encounter an libusb error.

An exception occurred while switching device to DFU Mode. Exception: System.DllNotFoundException: libusb-1.0 library not found.

Currently, Meadow.OS deployments require an x64 version of libusb that isn’t installed by default on ARM Macs. As a workaround, run the following commands to install the x64 version of libusb and then add some additional required locations to your PATH.

arch -x86_64 brew install libusb
export PATH=$HOME/Meadow.CLI/Meadow.CLI/bin/Debug/:/usr/local/share/dotnet/x64/:$PATH

 


These docs are open source. If you find an issue, please file a bug, or send us a pull request. And if you want to contribute, we'd love that too!