Skip to content

macOS: Framework location corrected.#426

Open
0xDP wants to merge 1 commit intosignal11:masterfrom
0xDP:macos_framework_location
Open

macOS: Framework location corrected.#426
0xDP wants to merge 1 commit intosignal11:masterfrom
0xDP:macos_framework_location

Conversation

@0xDP
Copy link

@0xDP 0xDP commented May 5, 2019

Hi,

according to

https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/OSX_Technology_Overview/SystemFrameworks/SystemFrameworks.html

IOKit.framework is located at "/System/Library/Frameworks/", but hidapi/mac/hid.c:hidapi_IOHIDDeviceGetService() tries to find it at "/System/Library/". That fails and at least on macOS 10.14 the fallback method seems to not working too, so that hid_enumerate() cannot determine a path. A subsequent call of hid_open() fails due to the empty path.

@jonathancross
Copy link

jonathancross commented Jul 11, 2019

Was this tested on earlier mac versions?

Please consider making this PR at https://github.com/libusb/hidapi
See #373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants