Files
kaizen/docs/INTRO-xcode.md
T
iris 206dcdedf1 Squashed 'external/SDL/' content from commit 4d17b99d0a
git-subtree-dir: external/SDL
git-subtree-split: 4d17b99d0a1c33c5257063b098f883c669ade40b
2026-04-02 14:13:02 +02:00

1.0 KiB

Introduction to SDL with Xcode

The easiest way to use SDL is to include it as a subproject in your project.

We'll start by creating a simple project to build and run hello.c

  • Create a new project in Xcode, using the App template and selecting Objective C as the language
  • Remove the .h and .m files that were automatically added to the project
  • Remove the main storyboard that was automatically added to the project
  • On iOS projects, select the project, select the main target, select the Info tab, look for "Custom iOS Target Properties", and remove "Main storyboard base file name" and "Application Scene Manifest"
  • Right click the project and select "Add Files to [project]", navigate to the SDL docs directory and add the file hello.c
  • Right click the project and select "Add Files to [project]", navigate to the SDL Xcode/SDL directory and add SDL.xcodeproj
  • Select the project, select the main target, select the General tab, look for "Frameworks, Libraries, and Embedded Content", and add SDL3.framework
  • Build and run!