0
0

Well, after trying a lot, and searching the forums, I got it working. I’d like to note that the examples did compile for me (with xcode) but didn’t run. The instructions in the sticky about xcode 1.5 arn’t really up to date, so I thought I’d post how I did it.

In an open project:
[list=1:1m2rh2np]
[:1m2rh2np]Right-click on your project in the “Groups & Files” panel, then click on Add -> Existing Frameworks…[/:m:1m2rh2np]
[:1m2rh2np]A new window should appear. Browse to “/Developer/FMOD Programmers API/api/lib” and select libfmodex.dylib[/:m:1m2rh2np]
[:1m2rh2np]Click on Project -> New Build Phase -> New Run Script Build Phase[/:m:1m2rh2np]
[:1m2rh2np]A new window should appear. In the “Script” field, enter the following code:
[code:1m2rh2np]mkdir "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks"
cp -f /Developer/FMOD\ Programmers\ API/api/lib/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/libfmodex.dylib"
install_name_tool -change libfmodex.dylib @executable_path/../Frameworks/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/Worms"[/code:1m2rh2np][/
:m:1m2rh2np][/list:o:1m2rh2np]I hope this helps anyone trying to use fmod with xcode 😀

grtz

  • You must to post comments
0
0

Thanks!

So far this is the only code I have found anywhere that is of any help
Still would be easier as a static libfmodex.a

But oh well.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.