hidapi icon indicating copy to clipboard operation
hidapi copied to clipboard

Hardened runtime using hidapi under macOS Catalina

Open jbolduc01 opened this issue 4 years ago • 4 comments

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

jbolduc01 avatar May 13 '20 15:05 jbolduc01

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

todbot avatar May 13 '20 15:05 todbot

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

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

Youw avatar May 13 '20 16:05 Youw

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!

todbot avatar May 13 '20 17:05 todbot

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

jbolduc01 avatar May 13 '20 20:05 jbolduc01