Allow HID control for the sandboxed app

亡梦爱人 提交于 2019-12-04 13:01:41

Even tho I'm several years too late, I assume I can help others looking for the same. It's taken me days wondering why I couldn't connect to the keyboard. Today, the thought of the sandbox hit me, and I finally allowed my app access.

As described here, I added the following to the .entitlements file, and got access.

<key>com.apple.security.device.usb</key>
<true/>

To be specific, and not mislead:

I do not use Carbon; I use IOKit.hid, with Swift.

EDIT: See the new accepted answer

Just to answer my own question – it's not possible, there is no workaround and it's unlikely it will be possible in the future.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!