Hello.

This is a very crude form of a tutorial, that I (Andreas Kramer) put together after hours of research and try and error, for maybe helping others whom has trouble with getting SDL to work in MacOSX for the KTH course Computer Graphics and Interaction (DH2323) DGI14.
- https://www.kth.se/social/course/DH2323/

This is largely based on the tutorial I found on the internet, by a Game developer named Jace, which in his turn used another tutorial and added a few things. I suggest you read it incase something doesn't work with this.

- http://gravityrelease.me/dev/set-up-a-cpp-sdl-opengl-game-development-project-in-xcode-4-osx-10-8/


I've included the step by step inside the name of the screenshots, as I thought that was the best approach to keeping this small and easy to make. I did this on a Macbook Air 2011 model with OSX 10.7.5 (Lion), with Xcode 4.6.3, but this should be similar to how it would work on other Xcode versions (mainly Xcode 5) with some tweaks.

If this does not work for you, you should consider other alternatives, 
such as perhaps getting Xcode 4 incase you're using Xcode 5, if you can't get it to work with Xcode 5, or using Bootcamp to install windows on your computer and dual boot into that (Not recommended unless you know what you are doing.).

A few notes about SDL, 
They recently updated to SDL 2.0, which will not work with current version of GLM. 
The version you want is 1.2, which can be found on their webpage www.libsdl.org under Downloads. I suggest you save the devel-lite folder on your hard drive for future use, I saved mine within the SDL-Framework folder inside /Library/Frameworks/, which is for me, an ideal place since if I would want to use SDL again, I can easily find that folder again.


Thank you, And I hope this will work out for you.
- Andreas Kramer 
Email: akramer@kth.se