How to set up a SDL 2 project for iOS in Xcode 5

SDL 2, a cross-platform library for multimedia applications, now offers projects and templates for many platforms, including a XCode project template for iOS which, in theory, should allow you to start to work on your app without wasting any time creating a project from scratch.

The sour reality

Unfortunately reality is not that bright and the template iOS project included in the latest sources release (2.0.3) doesn’t even build.

The two main issues are the missing SDL files (highlighted in red in the picture above) and the missing headers search path(s) which allow our program to find SDL.

The good news is that those problems are quite easy to solve and in this post I’m going to show you how.

Before starting

I’m assuming you’re trying to build the iOS template project included in the SDL 2 stable sources (version 2.0.3).

Things will be slightly different if you’re building a project from scratch or if you’re trying to build the template project after copying it outside the original directory. Obviously the key concepts will remain

Leave a Comment

Your email address will not be published. Required fields are marked *