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:
[: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:
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 😀
- You must login to post comments