diff options
author | 3gg <3gg@shellblade.net> | 2025-08-30 16:53:58 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-08-30 16:53:58 -0700 |
commit | 6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch) | |
tree | 34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/docs/INTRO-xcode.md | |
parent | 8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff) |
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/docs/INTRO-xcode.md')
-rw-r--r-- | src/contrib/SDL-3.2.20/docs/INTRO-xcode.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/docs/INTRO-xcode.md b/src/contrib/SDL-3.2.20/docs/INTRO-xcode.md new file mode 100644 index 0000000..5f0a62a --- /dev/null +++ b/src/contrib/SDL-3.2.20/docs/INTRO-xcode.md | |||
@@ -0,0 +1,16 @@ | |||
1 | |||
2 | # Introduction to SDL with Xcode | ||
3 | |||
4 | The easiest way to use SDL is to include it as a subproject in your project. | ||
5 | |||
6 | We'll start by creating a simple project to build and run [hello.c](hello.c) | ||
7 | |||
8 | - Create a new project in Xcode, using the App template and selecting Objective C as the language | ||
9 | - Remove the .h and .m files that were automatically added to the project | ||
10 | - Remove the main storyboard that was automatically added to the project | ||
11 | - 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" | ||
12 | - Right click the project and select "Add Files to [project]", navigate to the SDL docs directory and add the file hello.c | ||
13 | - Right click the project and select "Add Files to [project]", navigate to the SDL Xcode/SDL directory and add SDL.xcodeproj | ||
14 | - Select the project, select the main target, select the General tab, look for "Frameworks, Libaries, and Embedded Content", and add SDL3.framework | ||
15 | - Build and run! | ||
16 | |||