Chances are that you haven't added /usr/local/include
and /usr/local/lib
to the search paths in your project. In Xcode, bring up either the project settings or the target settings and look for a section named "Search Paths". Double-click on "Header Search Paths" and add /usr/local/include
. Now, double-click on "Library Search Paths" and add /usr/local/lib
. When you rebuild your project, libusb should be available. You will need to add #include <libusb.h>
at the top of each source file that uses functionality from that product.
Apple makes a distinction between libraries and frameworks. A library is what you have now. There are header files and library (dylib) files that you compile and link against. They are stored in somewhat global locations, such as /usr/include
, /usr/local/include
, and so-forth. Frameworks are bundles that contains headers, libraries, graphical resources, version information, and more.