Recently I started using the neat fetures of Fmod for iPhone development. Fmod is an audio library used for most gaming platforms to add sound effects and create a 3D world of sounds. Here follows a step-by-step guide to set up Fmod for iPhone in Xcode. SDK version 4.3.3.
1. Download Fmod Ex Programmers API for iOS.
2. Unzip Fmod Programmers API to your Applications folder.
3. Create a new project in xCode. To enhance the workflow I create my project in the following folder: “/Applications/FMOD Programmers API/examples/”.
4. Fmod is using a mix of Objective-C and C++. All .m files in your project needs to be renamed .mm which is the file format for Objective-C++.
5. In “Build Phases” link the following frameworks to your project:
AudioToolbox.framework
CoreAudio.framework
6. Include these Fmod files in your header file:
#import "fmod_errors.h"
7. For your project to find the Fmod files you will include search paths to your “Build settings”:
LIBRARY_SEARCH_PATHS ../../api/lib
8. Link the following libraries to your project. In “Build Settings” set OTHER_LDFLAGS to:
Release -lfmodex_$PLATFORM_NAME














STORMER 18:24 on November 1, 2012 Permalink
something wrong? the output: dyld: Library not loaded: ./libfmodex.dylib Referenced from: /Users/stormer/Library/Application Support/iPhone Simulator/5.1/Applications/BC0F5B4B-1C27-4818-BF5C-81CED698AEF5/MyLovelyUkulele.app/MyLovelyUkulele Reason: image not found
MariFer 04:09 on November 7, 2012 Permalink
I get this error: ld: library not found for -lfmodex_macosx why do you think the link is not working?
Ellen 23:54 on November 7, 2012 Permalink
Are u exporting Fmod to iPhone? It looks like u are trying to export it to a Mac OS X app.
Zafar 07:48 on February 6, 2013 Permalink
I get this error: library not found for -lfmodexL_iphonesimulator
how to solve this issue?
Tim 04:33 on March 21, 2013 Permalink
I went with a slightly different method, but should achieve the same results:
I added libfmodexL_iphoneos.a and libfmodexL_iphonesimulator.a as well as the headers manually to my project (as I usually do with statically linked libs). All well and good.
When I try to compile I get this error in fmod.hpp on the namespace FMOD declaration:
“Redefinition of ‘fmodf’ as different kind of symbol”
Any ideas?
Tim 04:34 on March 21, 2013 Permalink
oh…. my god…. nevermind – another library I’m using has this line:
#define FMOD fmodf
HAH!