Hi gys im seeking help from someone who knows about the OSX xcode 4 compiler and runtime

Ok so Im a big fan of SDL and have used it on windows form nearly a year now. After some research I found that the iphone could compile c++ so I have been triyng to get SDL working with xcode 4 on my mac.

after a bit of research I found there is very little help on trying to do this for xcode 4. But from my knowledge from windows it accrued to me that all I really needed to do was add the SDL framework to the project then make the header files visible to the compiler.

This was fairly easy to do a simple test program compiles no problem. Now I hit the hurdle when trying to run the program I get the error message

Yup you're right about it missing the shared library. If you install the runtime libraries for SDL you would see it under your /Libraries/Framework/SDL path (which is roughly equivalent to the DLL being under your system32 folder), or you can embed it inside your application package which is where dyld is telling you it can't find it. You can find the shared library by getting the runtime library here: http://www.libsdl.org/download-1.2.php, although the website is acting a bit strange right now and not giving me actual downloads. If that fails you can build it yourself from the development source on the same page. Just open the XCode project, set the SDK/compiler/OS version appropriately and build the Framework, it'll have what you're missing! Good luck!

@Endogenous
Thanks for the reply, you mentioned installing SDL runtime libraries, on Lion the SDL install and template don't work. I redownloaded the runtime but all I have are header files and one resource .nib file.

Here are my steps so you can see exactly what I did

Manually copy the entire SDL.framework folder from the SDL.dmg download to the /Developer/Library/Frameworks folder.
Created an Xcode koko project removed the current .h and .m files
Included the SDL.Framework in the projects frameworks
Under project Build settings pointed the HeaderSearchPath Bebug and Release to the /Developer/Library/Frameworks/SDL.Framework/headers
Included the SDLMain.h and SDLMain.m files from the devlite folder from the download into the project

Project now successfully compiles but is missing the runtime libs

Copied the SDLmain.nib from SDL.Frameworks/Resources into the project folder Documents/Xcode/Test/Test

Made no difference, maybe this is the wrong place for this?

As I said all of this was guess work from windows knowledge so it is probably something something dead simple