IOKit / usb / IOUSBDevice驱动程序无法在macOS 10.13.2上运行

时间:2018-01-25 08:53:19

标签: macos usb device-driver macos-high-sierra iokit

我已经使用macOS 10.10构建USB驱动程序并且它正常工作,能够在10.10检测我的USB设备

相同的驱动程序无法在macOS 10.13.2上运行,我的USB设备未检测到,以下是来自控制台的日志:

include "IOKit/IOLib.h"
include "IOKit/IOMessage.h"
include "IOKit/usb/IOUSBBus.h"
include "IOKit/usb/IOUSBNub.h"
include "IOKit/usb/IOUSBDevice.h"
include "IOKit/usb/IOUSBPipe.h"
include "IOKit/usb/USB.h"
include "IOKit/usb/IOUSBInterface.h"
include "IOKit/IOInterruptEventSource.h"
include "IOKit/IOTimerEventSource.h"

要解决此问题,尝试在macOS 10.13.3上构建相同的源代码,但收到.h文件未找到错误:

  

"由于IOKit / USB / IOUSBBus.h"找不到

以下文件包括我的来源

private val DIFF_CALLBACK: DiffCallback<MessageModel> = object : DiffCallback<MessageModel>() {
        override fun areItemsTheSame(@NonNull oldMessage: MessageModel, @NonNull newMessage: MessageModel) =
                oldMessage.id == newMessage.id


        override fun areContentsTheSame(@NonNull oldMessage: MessageModel, @NonNull newMessage: MessageModel) =
                oldMessage.equals(newMessage)
    }

请帮助如何在macOS 10.13.2上使用旧的USB驱动程序

0 个答案:

没有答案