2016-12-24 55 views
0

我的工作就是端口BLE鼠标(蓝牙低功耗鼠标)在Mac 10.10类驱动程序到10.12 ..BLE interfce MAC OS 10.12类移植

我的旧内核扩展从IOHIDEventDriver类派生的。在info.plist中提供类是IOHIDInterfcae

当我建立上面的kext与10.12 SDK,编译完成,但在加载内核扩展我得到以下错误:

The vtable '__ZTV15CbBLEInterface' is malformed. Make sure your kext has been built against the correct headers

下面是sudo kextutil -n -print-diagnostics myble.kext输出

Warnings: Dependency lacks appropriate value for OSBundleRequired and may not be availalble during early boot: com.apple.iokit.IOBluetoothFamily - Safe Boot com.apple.driver.IOBluetoothHIDDriver - Safe Boot

回答

0

在用8.2.1更新xcode之后,使用正确的头文件编译的代码并且它工作正常:)。感谢大家的帮助。