Once you have built an application with the libEveUSB.dylib library, you should add the path to the library so your application can find it at its start.


Method 1. Add rpath with the full path to the library:


install_name_tool -add_rpath /full/path/to/libEveUSB.dylib



Note: In Xcode, this can be done by using the Runpath Search Paths settings:


Runpath Search Paths  

Method 2. Change the path to the libEveUSB.dylib library in the executable file of your application:


install_name_tool -change "@rpath/libEveUSB.dylib"

/full/path/to/libEveUSB.dylib /path/to/application/binary


Note: In Xcode, you can add the Run Script Phase to Build Phases to change the path:


Run Script Phase