2
0

Hi,

Just to document & share knowledge: These are the steps I took to add FMOD to an iOS/iphone/ipad project in XCode:

[list:1p0ym9q7]
[:1p0ym9q7]Download FMOD Api for iOS[/:m:1p0ym9q7]
[:1p0ym9q7]Copy all *.h (headers) and *.a (libraries) into your project[/:m:1p0ym9q7]
[:1p0ym9q7]Click the project to and select "Build Settings" tab. Make sure to select "All" and "Combined" to view all settings.[/:m:1p0ym9q7]
[:1p0ym9q7]Add the header directory to the "Header Search Paths" (under de "Search" section)[/:m:1p0ym9q7]
[:1p0ym9q7]Add the library directory to the "Library Search Paths"[/:m:1p0ym9q7]
[:1p0ym9q7]Add "-lfmodL_$PLATFORM_NAME" and "-lfmodstudioL_$PLATFORM_NAME" to "Other Linker Flags" (in the "Linker" section)[/:m:1p0ym9q7]
[:1p0ym9q7]Check "Build Active Architecture Only" (Architecture section)[/:m:1p0ym9q7][/list:u:1p0ym9q7]

I’m not sure if the last step is necessary, and I am also not sure whether I have to configure the project or the "build target" (or how the build target inherits settings from the project?)

[b:1p0ym9q7]Can anybody confirm this is the proper way to add FMOD to an iOS project?[/b:1p0ym9q7]

Thanks!

  • Beric Holt
    Thanks heaps for posting this. The documentation isn't clear on all of the steps. I was missing the linker flags, and getting all sorts of weird issues (such as it worked in the iOS Simulator, but not on the device)
  • You must to post comments
0
0

Ah, didn’t know the L stands for Logging!

That’s useful to know – I’m happy I posted.

  • You must to post comments
0
0

Those settings look good to me, however the "build active arch only" isn’t necessary, that just ensures you don’t build a universal binary (useful in debug to reduce build times). Also be aware that with fmodL and fmodstudioL, the ‘L’ signifies ‘logging’, these versions should be used with your debug configuration to get more feedback about errors, in release mode use the libraries ‘fmod’ and ‘fmodstudio’.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.