Skip to content

Instantly share code, notes, and snippets.

@brandonros
Created November 17, 2019 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonros/d992a1836671e4e43cad0943aeefca91 to your computer and use it in GitHub Desktop.
Save brandonros/d992a1836671e4e43cad0943aeefca91 to your computer and use it in GitHub Desktop.
How to compile libusb in XCode for iPhoneOS 13
See comment/image/screenshot.
@brandonros
Copy link
Author

Screen Shot 2019-11-17 at 12 52 51 PM

@brandonros
Copy link
Author

I used https://github.com/guoxuzan/IOKit/tree/master/IOKit/Headers but I had to change a few minor lines from #include "foo.h" to #include <foo.h>

Also, IOKit.framework came from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks

@brandonros
Copy link
Author

image

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