SDL1.3 + iPhone Problems

Hi. I’m really confused. I have managed to compile and build libSDL.a and all the individual demo projects (such as Rectangles) contained within the SDL1.3 archive. I can run the demos on both iPhone simulator and my iPod Touch… excellent…

Now then, the problem I’m having is trying to get an app of my own to work. I’ve tried building the “Template” project provided and I get the same problem as I do when trying to build my own project. First I get a linker error saying that SDL_RendererClear cannot be found. So… I tried commenting the call to that function out and when I try to run my app, the SDL logo appears and then the app crashes.

I’ve noticed that the demo projects also call SDL_RendererClear and link without problems. So… I figured that I must be linking in the wrong libSDL.a file. What I don’t understand is that I can’t actually find or locate the libSDL.a file that the likes of “Rectangles” is using.

Do the demos build the libSDL source files straight into the example projects rather than simply linking in the libSDL.a file?

I’m pretty new to Xcode - especially Xcode 4 so trying to find out what is being included and where is proving to be somewhat of a mission.

Cheers
Sparky