I’ve just started my first project with the low-level api in Xcode on OS X using the C++ command line tool project type.
I basically copied the whole FMOD download folder for Mac OS X into my project folder.
I created a ‘Group’ in Xcode project hierarchy called ‘Libraries’ where I added the debug/release versions of the FMOD libs. (This has the effect of updating ‘Link Binaries With Libraries’ section of Build Phases for my target.
I then updated the following Build Settings for my project:
- Linking -> Other Linker Flags = “FMOD Programmers API/api/lowlevel/lib/libfmodL.dylib” (Debug)
- Linking -> Other Linker Flags = “FMOD Programmers API/api/lowlevel/lib/libfmod.dylib” (Release)
- Search Paths -> Header Search Paths = “FMOD Programmers API/api/lowlevel/inc”
The project builds successfully, but when I run I get the following error:
dyld: Library not loaded: @rpath/libfmodL.dylib Referenced from:
Reason: image not found (lldb)
If I place a breakpoint on the first line of code in my main function entry-point, it doesn’t even reach it.
I can’t see how my project differs from the examples provided, am I missing something?