mac-dial
mac-dial copied to clipboard
Cannot find 'hid_monitor' in scope
The cpu of my mac is Apple M1 Pro, when i debug the project:
I have clone the hidapi and make :
$ sudo make install Consolidate compiler generated dependencies of target hidapi_darwin [100%] Built target hidapi_darwin Install the project... -- Install configuration: "Release" -- Installing: /usr/local/lib/cmake/hidapi/libhidapi.cmake -- Installing: /usr/local/lib/cmake/hidapi/libhidapi-release.cmake -- Installing: /usr/local/lib/cmake/hidapi/hidapi-config-version.cmake -- Installing: /usr/local/lib/cmake/hidapi/hidapi-config.cmake -- Installing: /usr/local/lib/libhidapi.a -- Installing: /usr/local/include/hidapi/hidapi.h -- Installing: /usr/local/include/hidapi/hidapi_darwin.h -- Installing: /usr/local/lib/pkgconfig/hidapi.pc
I'm facing this issue too. Although I'm not good at Swift and cannot provide an alternate solution, but I've tried commenting this whole block of code and it then turned out to be compilable and runnable.
Just as a observation: I commented out the piece of code as suggested, but experienced mac-dial lost contact with the device very frequently.
Long story short: I looked at the git commit log and noticed the semaphore timeout had been changed from 50ms to 60 seconds. Changing it back to 500ms fixed all timeout/connectivity issues.
Note: this is very much a 'hack'/workaround and not a fix of the original issue :)