-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Program is compiled successfully. when I tried to upload firmware, I got following message:
dyld[1034]: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
Referenced from: /Users/chenli/.platformio/packages/tool-openocd-riscv-wch/bin/openocd
Reason: tried: '/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (code signature in <04015360-D1D9-313C-87B0-05F7AC278738> '/usr/local/Cellar/libusb/1.0.27/lib/libusb-1.0.0.dylib' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.), '/usr/lib/libusb-1.0.0.dylib' (no such file), '/usr/local/Cellar/libusb/1.0.27/lib/libusb-1.0.0.dylib' (code signature in <04015360-D1D9-313C-87B0-05F7AC278738> '/usr/local/Cellar/libusb/1.0.27/lib/libusb-1.0.0.dylib' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.), '/usr/lib/libusb-1.0.0.dylib' (no such file)
Then I installed libusb through brew, but could not resolve it.
Can anybody provide some suggestions ? Thanks!