1 Reply
      Latest reply: Feb 9, 2017 1:32 AM by eskimo RSS
      frank guo Level 1 Level 1 (0 points)

        develop kext on macos10.12,with Xcode7.2.1,

        #include <IOKit/usb/IOUSBBus.h>

        build the project, throw error, it says IOKit/usb/IOUSBBus.h file not found


        but on 10.10, the project build is ok.

        how to change this include?

        and where i can get the osx changes between 10.10 and 10.12.



        • Re: IOKit/usb/IOUSBBus.h file not found
          eskimo Apple Staff Apple Staff (6,685 points)

          There have been big changes to the in-kernel USB implementation in recent releases of macOS (between 10.10 and 10.11 IIRC).  It’s not my specialty, so I don’t have a lot of specific advice to give here.  The general advice for KEXT development is that you should use the tools associated with the lowest macOS release you’re targeting (this is very different from user space development, where we recommend that you always use the latest tools).  So, what’s your intended deployment target?

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"