[lugaru] XCode Project

Wolf Mathwig wolf.mathwig at alice-dsl.net
Fri May 14 13:30:22 EDT 2010


Hi,

currently, Build-and-Run doesn't work out-of-the-box.

To fix this, do this:

- In XCode, go to "Project -> New Build Phase -> New Run Script Build Phase"

- In the Comments tab, enter something like:
Copy libSDL dylib and the Data folder to build path when building

- In the General tab, enter something like:
#!/bin/sh
BUILDPATH=build/Debug/Lugaru.app/Contents/MacOS/
LIBPATH=../Dependencies/
DATAPATH=../
cp -r ${LIBPATH}SDL12/lib/macosx/libSDL-1.2.0.dylib $BUILDPATH
cp -r ${DATAPATH}Data ${BUILDPATH}../../

This could of course be far more dynamic and smart and all, but it does 
the job for now.

If you want to edit this Script Build Phase later, then go to the 
"Targets" subtree in the XCode Project Tree, then unfold "Lugaru", 
right-click "Run Script" and choose "Get Info".

Have a nice day,
   Wolf


More information about the lugaru mailing list