signal11 / hidapi

A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac, and Windows.
http://www.signal11.us/oss/hidapi/
Other
2.46k stars 901 forks source link

Hardened runtime using hidapi under macOS Catalina #458

Open jbolduc01 opened 4 years ago

jbolduc01 commented 4 years ago

Hello, I am having trouble to codesign my QT app using macdeployqt using the hidapi project. Seems like I do not have access to HID device after codesigning my application. Is anyone ran into this issue? How to solve it? Thanks, Jérôme

todbot commented 4 years ago

This library isn't being maintained any more, please see #373. However the solution to your issue is your app needs extra entitlements. See examples like: https://github.com/UltimateHackingKeyboard/agent/blob/master/scripts/entitlements.mac.plist But I believe the most important entitlement is com.apple.security.cs.allow-dyld-environment-variables See: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_cs_allow-dyld-environment-variables

Youw commented 4 years ago

com.apple.security.cs.allow-dyld-environment-variables

I believe it is not required any more after https://github.com/libusb/hidapi/pull/120

todbot commented 4 years ago

Interesting! I will update node-hid and schedule some node-hid & Electron tests. Hopefully this eliminates the need for this entitlement for Electron users too. Thanks!

jbolduc01 commented 4 years ago

Fixes #119 solves my issue on my side. Thanks.