diff --git a/Xcode-iOS/Template/SDL iOS Application/Default-568h@2x.png b/Xcode-iOS/Template/SDL iOS Application/Default-568h@2x.png
deleted file mode 100644
index eaea96e9e..000000000
Binary files a/Xcode-iOS/Template/SDL iOS Application/Default-568h@2x.png and /dev/null differ
diff --git a/Xcode-iOS/Template/SDL iOS Application/Default.png b/Xcode-iOS/Template/SDL iOS Application/Default.png
deleted file mode 100644
index f91282875..000000000
Binary files a/Xcode-iOS/Template/SDL iOS Application/Default.png and /dev/null differ
diff --git a/Xcode-iOS/Template/SDL iOS Application/Icon.png b/Xcode-iOS/Template/SDL iOS Application/Icon.png
deleted file mode 100644
index 83f4d10a2..000000000
Binary files a/Xcode-iOS/Template/SDL iOS Application/Icon.png and /dev/null differ
diff --git a/Xcode-iOS/Template/SDL iOS Application/Info.plist b/Xcode-iOS/Template/SDL iOS Application/Info.plist
deleted file mode 100644
index b8089dca2..000000000
--- a/Xcode-iOS/Template/SDL iOS Application/Info.plist
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleDisplayName
- ${PRODUCT_NAME}
- CFBundleExecutable
- ${EXECUTABLE_NAME}
- CFBundleIconFile
- Icon
- CFBundleIdentifier
- com.yourcompany.${PRODUCT_NAME:identifier}
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- ${PRODUCT_NAME}
- CFBundlePackageType
- APPL
- CFBundleSignature
- ????
- CFBundleVersion
- 1.0
- LSRequiresIPhoneOS
-
-
-
diff --git a/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns b/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns
deleted file mode 100644
index 4500ce2bb..000000000
Binary files a/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns and /dev/null differ
diff --git a/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist b/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist
deleted file mode 100644
index 498e37d4f..000000000
--- a/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
- Description
- This project builds an SDL based project for iPhone OS using C or Objective-C. It includes everything you need to get up and running with SDL on iPhone.
- CFBundleIconFile
- Icon.png
-
-
diff --git a/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/project.pbxproj b/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/project.pbxproj
deleted file mode 100644
index 8e54e04f7..000000000
--- a/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,500 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
- 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
- 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD14FF0DC6FC520079059D /* OpenGLES.framework */; };
- 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD15070DC6FC5B0079059D /* QuartzCore.framework */; };
- 945C4F53195AF17F00DBBF61 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 945C4F52195AF17F00DBBF61 /* Default-568h@2x.png */; };
- F3A497AC2555F0BD00E92A8B /* CoreHaptics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3A497AB2555F0BD00E92A8B /* CoreHaptics.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
- F3A497AD2555F0C000E92A8B /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F3A4978F2555F07100E92A8B /* libSDL2.a */; };
- F3A497B02555F0FF00E92A8B /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3A497AF2555F0FF00E92A8B /* Metal.framework */; };
- F3A497B32555F11600E92A8B /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3A497B22555F11600E92A8B /* AVFoundation.framework */; };
- FA8B4B97196703B400F8EB7C /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FA8B4B96196703B400F8EB7C /* CoreMotion.framework */; };
- FAE0E9651BAF967F0098DFA4 /* GameController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FAE0E9641BAF967F0098DFA4 /* GameController.framework */; };
- FD779EDE0E26BA1200F39101 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD779EDD0E26BA1200F39101 /* CoreAudio.framework */; };
- FD77A07D0E26BD8C00F39101 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = FD77A07C0E26BD8C00F39101 /* Icon.png */; };
- FD77A07F0E26BDA900F39101 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = FD77A07E0E26BDA900F39101 /* Default.png */; };
- FD77A0850E26BDB800F39101 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD77A0840E26BDB800F39101 /* AudioToolbox.framework */; };
- FD77A09D0E26BDE500F39101 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = FD77A09C0E26BDE500F39101 /* main.c */; };
- FDB8BFC60E5A0F6A00980157 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDB8BFC50E5A0F6A00980157 /* CoreGraphics.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- F3A497862555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = BECDF66C0761BA81005FE872;
- remoteInfo = Framework;
- };
- F3A497882555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = A7D88B5423E2437C00DCD162;
- remoteInfo = "Framework-iOS";
- };
- F3A4978A2555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = A7D88D1523E24BED00DCD162;
- remoteInfo = "Framework-tvOS";
- };
- F3A4978C2555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = BECDF6B30761BA81005FE872;
- remoteInfo = "Static Library";
- };
- F3A4978E2555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = A7D88E5423E24D3B00DCD162;
- remoteInfo = "Static Library-iOS";
- };
- F3A497902555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = A769B23D23E259AE00872273;
- remoteInfo = "Static Library-tvOS";
- };
- F3A497922555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = DB31407717554B71006C0E22;
- remoteInfo = "Shared Library";
- };
- F3A497942555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = A75FCEB323E25AB700529352;
- remoteInfo = "Shared Library-iOS";
- };
- F3A497962555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = A75FD06C23E25AC700529352;
- remoteInfo = "Shared Library-tvOS";
- };
- F3A497982555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = BECDF6BE0761BA81005FE872;
- remoteInfo = "Standard DMG";
- };
- F3A4979A2555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = A75FDB8C23E4C74400529352;
- remoteInfo = hidapi;
- };
- F3A4979C2555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = A75FDB4923E399AC00529352;
- remoteInfo = "hidapi-iOS";
- };
- F3A4979E2555F07100E92A8B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = A75FDB6E23E3A2C900529352;
- remoteInfo = "hidapi-tvOS";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 1D6058910D05DD3D006BFB54 /* ___PROJECTNAME___.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "___PROJECTNAME___.app"; sourceTree = BUILT_PRODUCTS_DIR; };
- 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 28FD14FF0DC6FC520079059D /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
- 28FD15070DC6FC5B0079059D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
- 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- 944A65681957463F0094A81E /* SDL.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDL.xcodeproj; path = ../../../Xcode/SDL/SDL.xcodeproj; sourceTree = ""; };
- 945C4F52195AF17F00DBBF61 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; };
- F3A497AB2555F0BD00E92A8B /* CoreHaptics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreHaptics.framework; path = System/Library/Frameworks/CoreHaptics.framework; sourceTree = SDKROOT; };
- F3A497AF2555F0FF00E92A8B /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = System/Library/Frameworks/Metal.framework; sourceTree = SDKROOT; };
- F3A497B22555F11600E92A8B /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
- FA8B4B96196703B400F8EB7C /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; };
- FAE0E9641BAF967F0098DFA4 /* GameController.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameController.framework; path = System/Library/Frameworks/GameController.framework; sourceTree = SDKROOT; };
- FD779EDD0E26BA1200F39101 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; };
- FD77A07C0E26BD8C00F39101 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; };
- FD77A07E0E26BDA900F39101 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; };
- FD77A0840E26BDB800F39101 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
- FD77A09C0E26BDE500F39101 /* main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = ""; };
- FDB8BFC50E5A0F6A00980157 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- F3A497AD2555F0C000E92A8B /* libSDL2.a in Frameworks */,
- FD77A0850E26BDB800F39101 /* AudioToolbox.framework in Frameworks */,
- F3A497B32555F11600E92A8B /* AVFoundation.framework in Frameworks */,
- 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
- FD779EDE0E26BA1200F39101 /* CoreAudio.framework in Frameworks */,
- FDB8BFC60E5A0F6A00980157 /* CoreGraphics.framework in Frameworks */,
- F3A497AC2555F0BD00E92A8B /* CoreHaptics.framework in Frameworks */,
- FA8B4B97196703B400F8EB7C /* CoreMotion.framework in Frameworks */,
- FAE0E9651BAF967F0098DFA4 /* GameController.framework in Frameworks */,
- F3A497B02555F0FF00E92A8B /* Metal.framework in Frameworks */,
- 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */,
- 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */,
- 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 19C28FACFE9D520D11CA2CBB /* Products */ = {
- isa = PBXGroup;
- children = (
- 1D6058910D05DD3D006BFB54 /* ___PROJECTNAME___.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
- isa = PBXGroup;
- children = (
- 945C4F52195AF17F00DBBF61 /* Default-568h@2x.png */,
- 29B97315FDCFA39411CA2CEA /* Sources */,
- 29B97317FDCFA39411CA2CEA /* Resources */,
- 29B97323FDCFA39411CA2CEA /* Frameworks */,
- 19C28FACFE9D520D11CA2CBB /* Products */,
- );
- name = CustomTemplate;
- sourceTree = "";
- };
- 29B97315FDCFA39411CA2CEA /* Sources */ = {
- isa = PBXGroup;
- children = (
- 944A65681957463F0094A81E /* SDL.xcodeproj */,
- FD77A09C0E26BDE500F39101 /* main.c */,
- );
- name = Sources;
- sourceTree = "";
- };
- 29B97317FDCFA39411CA2CEA /* Resources */ = {
- isa = PBXGroup;
- children = (
- FD77A07E0E26BDA900F39101 /* Default.png */,
- FD77A07C0E26BD8C00F39101 /* Icon.png */,
- 8D1107310486CEB800E47090 /* Info.plist */,
- );
- name = Resources;
- sourceTree = "";
- };
- 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- F3A497B22555F11600E92A8B /* AVFoundation.framework */,
- F3A497AF2555F0FF00E92A8B /* Metal.framework */,
- F3A497AB2555F0BD00E92A8B /* CoreHaptics.framework */,
- FAE0E9641BAF967F0098DFA4 /* GameController.framework */,
- FA8B4B96196703B400F8EB7C /* CoreMotion.framework */,
- FDB8BFC50E5A0F6A00980157 /* CoreGraphics.framework */,
- FD77A0840E26BDB800F39101 /* AudioToolbox.framework */,
- FD779EDD0E26BA1200F39101 /* CoreAudio.framework */,
- 28FD15070DC6FC5B0079059D /* QuartzCore.framework */,
- 28FD14FF0DC6FC520079059D /* OpenGLES.framework */,
- 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
- 1D30AB110D05D00D00671497 /* Foundation.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
- F3A497772555F07100E92A8B /* Products */ = {
- isa = PBXGroup;
- children = (
- F3A497872555F07100E92A8B /* SDL2.framework */,
- F3A497892555F07100E92A8B /* SDL2.framework */,
- F3A4978B2555F07100E92A8B /* SDL2.framework */,
- F3A4978D2555F07100E92A8B /* libSDL2.a */,
- F3A4978F2555F07100E92A8B /* libSDL2.a */,
- F3A497912555F07100E92A8B /* libSDL2.a */,
- F3A497932555F07100E92A8B /* libSDL2.dylib */,
- F3A497952555F07100E92A8B /* libSDL2.dylib */,
- F3A497972555F07100E92A8B /* libSDL2.dylib */,
- F3A497992555F07100E92A8B /* SDL2 */,
- F3A4979B2555F07100E92A8B /* hidapi.framework */,
- F3A4979D2555F07100E92A8B /* hidapi.framework */,
- F3A4979F2555F07100E92A8B /* hidapi.framework */,
- );
- name = Products;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1D6058900D05DD3D006BFB54 /* ___PROJECTNAME___ */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "___PROJECTNAME___" */;
- buildPhases = (
- 1D60588D0D05DD3D006BFB54 /* Resources */,
- 1D60588E0D05DD3D006BFB54 /* Sources */,
- 1D60588F0D05DD3D006BFB54 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = "___PROJECTNAME___";
- productName = "___PROJECTNAME___";
- productReference = 1D6058910D05DD3D006BFB54 /* ___PROJECTNAME___.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 29B97313FDCFA39411CA2CEA /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0510;
- };
- buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "___PROJECTNAME___" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 1;
- knownRegions = (
- English,
- Japanese,
- French,
- German,
- );
- mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = F3A497772555F07100E92A8B /* Products */;
- ProjectRef = 944A65681957463F0094A81E /* SDL.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1D6058900D05DD3D006BFB54 /* ___PROJECTNAME___ */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- F3A497872555F07100E92A8B /* SDL2.framework */ = {
- isa = PBXReferenceProxy;
- fileType = wrapper.framework;
- path = SDL2.framework;
- remoteRef = F3A497862555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A497892555F07100E92A8B /* SDL2.framework */ = {
- isa = PBXReferenceProxy;
- fileType = wrapper.framework;
- path = SDL2.framework;
- remoteRef = F3A497882555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A4978B2555F07100E92A8B /* SDL2.framework */ = {
- isa = PBXReferenceProxy;
- fileType = wrapper.framework;
- path = SDL2.framework;
- remoteRef = F3A4978A2555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A4978D2555F07100E92A8B /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libSDL2.a;
- remoteRef = F3A4978C2555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A4978F2555F07100E92A8B /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libSDL2.a;
- remoteRef = F3A4978E2555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A497912555F07100E92A8B /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libSDL2.a;
- remoteRef = F3A497902555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A497932555F07100E92A8B /* libSDL2.dylib */ = {
- isa = PBXReferenceProxy;
- fileType = "compiled.mach-o.dylib";
- path = libSDL2.dylib;
- remoteRef = F3A497922555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A497952555F07100E92A8B /* libSDL2.dylib */ = {
- isa = PBXReferenceProxy;
- fileType = "compiled.mach-o.dylib";
- path = libSDL2.dylib;
- remoteRef = F3A497942555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A497972555F07100E92A8B /* libSDL2.dylib */ = {
- isa = PBXReferenceProxy;
- fileType = "compiled.mach-o.dylib";
- path = libSDL2.dylib;
- remoteRef = F3A497962555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A497992555F07100E92A8B /* SDL2 */ = {
- isa = PBXReferenceProxy;
- fileType = "compiled.mach-o.executable";
- path = SDL2;
- remoteRef = F3A497982555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A4979B2555F07100E92A8B /* hidapi.framework */ = {
- isa = PBXReferenceProxy;
- fileType = wrapper.framework;
- path = hidapi.framework;
- remoteRef = F3A4979A2555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A4979D2555F07100E92A8B /* hidapi.framework */ = {
- isa = PBXReferenceProxy;
- fileType = wrapper.framework;
- path = hidapi.framework;
- remoteRef = F3A4979C2555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- F3A4979F2555F07100E92A8B /* hidapi.framework */ = {
- isa = PBXReferenceProxy;
- fileType = wrapper.framework;
- path = hidapi.framework;
- remoteRef = F3A4979E2555F07100E92A8B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 1D60588D0D05DD3D006BFB54 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- FD77A07D0E26BD8C00F39101 /* Icon.png in Resources */,
- FD77A07F0E26BDA900F39101 /* Default.png in Resources */,
- 945C4F53195AF17F00DBBF61 /* Default-568h@2x.png in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 1D60588E0D05DD3D006BFB54 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- FD77A09D0E26BDE500F39101 /* main.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 1D6058940D05DD3E006BFB54 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- COPY_PHASE_STRIP = NO;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "";
- INFOPLIST_FILE = Info.plist;
- LIBRARY_SEARCH_PATHS = "$(inherited)";
- PRODUCT_NAME = "___PROJECTNAME___";
- USER_HEADER_SEARCH_PATHS = ../../../include;
- };
- name = Debug;
- };
- 1D6058950D05DD3E006BFB54 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- COPY_PHASE_STRIP = YES;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "";
- INFOPLIST_FILE = Info.plist;
- LIBRARY_SEARCH_PATHS = "$(inherited)";
- PRODUCT_NAME = "___PROJECTNAME___";
- USER_HEADER_SEARCH_PATHS = ../../../include;
- };
- name = Release;
- };
- C01FCF4F08A954540054247B /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- ONLY_ACTIVE_ARCH = YES;
- OTHER_CFLAGS = "";
- PREBINDING = NO;
- SDKROOT = iphoneos;
- };
- name = Debug;
- };
- C01FCF5008A954540054247B /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- OTHER_CFLAGS = "";
- PREBINDING = NO;
- SDKROOT = iphoneos;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "___PROJECTNAME___" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1D6058940D05DD3E006BFB54 /* Debug */,
- 1D6058950D05DD3E006BFB54 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- C01FCF4E08A954540054247B /* Build configuration list for PBXProject "___PROJECTNAME___" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- C01FCF4F08A954540054247B /* Debug */,
- C01FCF5008A954540054247B /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
-}
diff --git a/Xcode-iOS/Template/SDL iOS Application/main.c b/Xcode-iOS/Template/SDL iOS Application/main.c
deleted file mode 100644
index 52fd9a49a..000000000
--- a/Xcode-iOS/Template/SDL iOS Application/main.c
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * rectangles.c
- * written by Holmes Futrell
- * use however you want
- */
-
-#include "SDL.h"
-#include
-#include
-#include
-
-#define SCREEN_WIDTH 320
-#define SCREEN_HEIGHT 480
-
-int
-randomInt(int min, int max)
-{
- return min + rand() % (max - min + 1);
-}
-
-void
-render(SDL_Renderer *renderer)
-{
-
- SDL_Rect rect;
- Uint8 r, g, b;
-
- /* Clear the screen */
- SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
- SDL_RenderClear(renderer);
-
- /* Come up with a random rectangle */
- rect.w = randomInt(64, 128);
- rect.h = randomInt(64, 128);
- rect.x = randomInt(0, SCREEN_WIDTH);
- rect.y = randomInt(0, SCREEN_HEIGHT);
-
- /* Come up with a random color */
- r = randomInt(50, 255);
- g = randomInt(50, 255);
- b = randomInt(50, 255);
- SDL_SetRenderDrawColor(renderer, r, g, b, 255);
-
- /* Fill the rectangle in the color */
- SDL_RenderFillRect(renderer, &rect);
-
- /* update screen */
- SDL_RenderPresent(renderer);
-}
-
-int
-main(int argc, char *argv[])
-{
-
- SDL_Window *window;
- SDL_Renderer *renderer;
- int done;
- SDL_Event event;
-
- /* initialize SDL */
- if (SDL_Init(SDL_INIT_VIDEO) < 0) {
- printf("Could not initialize SDL\n");
- return 1;
- }
-
- /* seed random number generator */
- srand(time(NULL));
-
- /* create window and renderer */
- window =
- SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
- SDL_WINDOW_OPENGL);
- if (!window) {
- printf("Could not initialize Window\n");
- return 1;
- }
-
- renderer = SDL_CreateRenderer(window, -1, 0);
- if (!renderer) {
- printf("Could not create renderer\n");
- return 1;
- }
-
- /* Enter render loop, waiting for user to quit */
- done = 0;
- while (!done) {
- while (SDL_PollEvent(&event)) {
- if (event.type == SDL_QUIT) {
- done = 1;
- }
- }
- render(renderer);
- SDL_Delay(1);
- }
-
- /* shutdown SDL */
- SDL_Quit();
-
- return 0;
-}
diff --git a/Xcode/SDL/SDL.xcodeproj/project.pbxproj b/Xcode/SDL/SDL.xcodeproj/project.pbxproj
index ce78505d5..d0df89fd0 100644
--- a/Xcode/SDL/SDL.xcodeproj/project.pbxproj
+++ b/Xcode/SDL/SDL.xcodeproj/project.pbxproj
@@ -3493,8 +3493,6 @@
F3ADAB912576F0B400A6B1D9 /* SDL_sysurl.m in Sources */ = {isa = PBXBuildFile; fileRef = F3ADAB8D2576F0B300A6B1D9 /* SDL_sysurl.m */; };
F3ADAB922576F0B400A6B1D9 /* SDL_sysurl.m in Sources */ = {isa = PBXBuildFile; fileRef = F3ADAB8D2576F0B300A6B1D9 /* SDL_sysurl.m */; };
F3ADAB932576F0B400A6B1D9 /* SDL_sysurl.m in Sources */ = {isa = PBXBuildFile; fileRef = F3ADAB8D2576F0B300A6B1D9 /* SDL_sysurl.m */; };
- F3CB963A26B5E10A00B9C980 /* SDL_uikit_main.c in Sources */ = {isa = PBXBuildFile; fileRef = A7D8A5B023E2513D00DCD162 /* SDL_uikit_main.c */; };
- F3CB963B26B5E14400B9C980 /* SDL_uikit_main.c in Sources */ = {isa = PBXBuildFile; fileRef = A7D8A5B023E2513D00DCD162 /* SDL_uikit_main.c */; };
F3F07D5A269640160074468B /* SDL_hidapi_luna.c in Sources */ = {isa = PBXBuildFile; fileRef = F3F07D59269640160074468B /* SDL_hidapi_luna.c */; };
F3F07D5B269640160074468B /* SDL_hidapi_luna.c in Sources */ = {isa = PBXBuildFile; fileRef = F3F07D59269640160074468B /* SDL_hidapi_luna.c */; };
F3F07D5C269640160074468B /* SDL_hidapi_luna.c in Sources */ = {isa = PBXBuildFile; fileRef = F3F07D59269640160074468B /* SDL_hidapi_luna.c */; };
@@ -4006,8 +4004,6 @@
F3984CCF25BCC92800374F43 /* SDL_hidapi_stadia.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_hidapi_stadia.c; sourceTree = ""; };
F3A4909D2554D38500E92A8B /* SDL_hidapi_ps5.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_hidapi_ps5.c; sourceTree = ""; };
F3ADAB8D2576F0B300A6B1D9 /* SDL_sysurl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_sysurl.m; sourceTree = ""; };
- F3CB94BA26B5E0A400B9C980 /* libSDLmain.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDLmain.a; sourceTree = BUILT_PRODUCTS_DIR; };
- F3CB963826B5E0A600B9C980 /* libSDLmain.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDLmain.a; sourceTree = BUILT_PRODUCTS_DIR; };
F3F07D59269640160074468B /* SDL_hidapi_luna.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_hidapi_luna.c; sourceTree = ""; };
F59C710300D5CB5801000001 /* ReadMe.txt */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = ReadMe.txt; sourceTree = ""; };
F59C710600D5CB5801000001 /* SDL.info */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = SDL.info; sourceTree = ""; };
@@ -4160,20 +4156,6 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
- F3CB94B526B5E0A400B9C980 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- F3CB963326B5E0A600B9C980 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@@ -4265,8 +4247,6 @@
A769B23D23E259AE00872273 /* libSDL2.a */,
A75FCEB323E25AB700529352 /* libSDL2.dylib */,
A75FD06C23E25AC700529352 /* libSDL2.dylib */,
- F3CB94BA26B5E0A400B9C980 /* libSDLmain.a */,
- F3CB963826B5E0A600B9C980 /* libSDLmain.a */,
);
name = Products;
sourceTree = "";
@@ -7089,20 +7069,6 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
- F3CB933F26B5E0A400B9C980 /* Headers */ = {
- isa = PBXHeadersBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- F3CB94BD26B5E0A600B9C980 /* Headers */ = {
- isa = PBXHeadersBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
@@ -7306,46 +7272,6 @@
productReference = DB31407717554B71006C0E22 /* libSDL2.dylib */;
productType = "com.apple.product-type.library.dynamic";
};
- F3CB933E26B5E0A400B9C980 /* SDLmain-iOS */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = F3CB94B726B5E0A400B9C980 /* Build configuration list for PBXNativeTarget "SDLmain-iOS" */;
- buildPhases = (
- F3CB933F26B5E0A400B9C980 /* Headers */,
- F3CB93F026B5E0A400B9C980 /* Sources */,
- F3CB94B526B5E0A400B9C980 /* Frameworks */,
- F3CB94B626B5E0A400B9C980 /* Rez */,
- );
- buildRules = (
- );
- comments = "This produces libSDLmain.a, which provides a main() for use with your application";
- dependencies = (
- );
- name = "SDLmain-iOS";
- productInstallPath = /usr/local/lib;
- productName = "Static Library";
- productReference = F3CB94BA26B5E0A400B9C980 /* libSDLmain.a */;
- productType = "com.apple.product-type.library.static";
- };
- F3CB94BC26B5E0A600B9C980 /* SDLmain-tvOS */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = F3CB963526B5E0A600B9C980 /* Build configuration list for PBXNativeTarget "SDLmain-tvOS" */;
- buildPhases = (
- F3CB94BD26B5E0A600B9C980 /* Headers */,
- F3CB956E26B5E0A600B9C980 /* Sources */,
- F3CB963326B5E0A600B9C980 /* Frameworks */,
- F3CB963426B5E0A600B9C980 /* Rez */,
- );
- buildRules = (
- );
- comments = "This produces libSDLmain.a, which provides a main() for use with your application";
- dependencies = (
- );
- name = "SDLmain-tvOS";
- productInstallPath = /usr/local/lib;
- productName = "Static Library";
- productReference = F3CB963826B5E0A600B9C980 /* libSDLmain.a */;
- productType = "com.apple.product-type.library.static";
- };
/* End PBXNativeTarget section */
/* Begin PBXProject section */
@@ -7368,8 +7294,6 @@
projectDirPath = "";
projectRoot = "";
targets = (
- F3CB933E26B5E0A400B9C980 /* SDLmain-iOS */,
- F3CB94BC26B5E0A600B9C980 /* SDLmain-tvOS */,
BECDF5FE0761BA81005FE872 /* Framework */,
A7D88A1423E2437C00DCD162 /* Framework-iOS */,
A7D88BC923E24BED00DCD162 /* Framework-tvOS */,
@@ -7457,20 +7381,6 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
- F3CB94B626B5E0A400B9C980 /* Rez */ = {
- isa = PBXRezBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- F3CB963426B5E0A600B9C980 /* Rez */ = {
- isa = PBXRezBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
/* End PBXRezBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
@@ -9165,22 +9075,6 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
- F3CB93F026B5E0A400B9C980 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- F3CB963A26B5E10A00B9C980 /* SDL_uikit_main.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- F3CB956E26B5E0A600B9C980 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- F3CB963B26B5E14400B9C980 /* SDL_uikit_main.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
@@ -9528,54 +9422,6 @@
};
name = Release;
};
- F3CB94B826B5E0A400B9C980 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_LINK_OBJC_RUNTIME = NO;
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- PRODUCT_NAME = SDLmain;
- SKIP_INSTALL = YES;
- SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
- };
- name = Debug;
- };
- F3CB94B926B5E0A400B9C980 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_LINK_OBJC_RUNTIME = NO;
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- PRODUCT_NAME = SDLmain;
- SKIP_INSTALL = YES;
- SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
- };
- name = Release;
- };
- F3CB963626B5E0A600B9C980 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_LINK_OBJC_RUNTIME = NO;
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- PRODUCT_NAME = SDLmain;
- SKIP_INSTALL = YES;
- SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
- };
- name = Debug;
- };
- F3CB963726B5E0A600B9C980 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_LINK_OBJC_RUNTIME = NO;
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- PRODUCT_NAME = SDLmain;
- SKIP_INSTALL = YES;
- SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
- };
- name = Release;
- };
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -9678,24 +9524,6 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Debug;
};
- F3CB94B726B5E0A400B9C980 /* Build configuration list for PBXNativeTarget "SDLmain-iOS" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- F3CB94B826B5E0A400B9C980 /* Debug */,
- F3CB94B926B5E0A400B9C980 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
- };
- F3CB963526B5E0A600B9C980 /* Build configuration list for PBXNativeTarget "SDLmain-tvOS" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- F3CB963626B5E0A600B9C980 /* Debug */,
- F3CB963726B5E0A600B9C980 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
- };
/* End XCConfigurationList section */
};
rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
diff --git a/docs/README-ios.md b/docs/README-ios.md
index 242869b3c..609e85a13 100644
--- a/docs/README-ios.md
+++ b/docs/README-ios.md
@@ -8,41 +8,26 @@ Requirements: Mac OS X 10.8 or later and the iOS 7+ SDK.
Instructions:
-1. Open SDL.xcodeproj (located in Xcode/SDL) in Xcode.
-2. Select your desired target, and hit build.
-
-There are three build targets:
-- libSDL.a:
- Build SDL as a statically linked library
-- testsdl:
- Build a test program (there are known test failures which are fine)
-- Template:
- Package a project template together with the SDL for iPhone static libraries and copies of the SDL headers. The template includes proper references to the SDL library and headers, skeleton code for a basic SDL program, and placeholder graphics for the application icon and startup screen.
-
-
-Build SDL for iOS from the command line
-==============================================================================
-
-1. cd (PATH WHERE THE SDL CODE IS)
-2. xcodebuild -project Xcode/SDL/SDL.xcodeproj -target 'Static Library-iOS' -configuration Release -sdk iphoneos13.2 clean build
+1. Open SDL.xcodeproj (located in Xcode/SDL) in Xcode.
+2. Select your desired target, and hit build.
Using the Simple DirectMedia Layer for iOS
==============================================================================
-FIXME: This needs to be updated for the latest methods
+1. Run Xcode and create a new project using the iOS Game template, selecting the Objective C language and Metal game technology.
+2. In the main view, delete all files except for Assets and LaunchScreen
+3. Right click the project in the main view, select "Add Files...", and add the SDL project, Xcode/SDL/SDL.xcodeproj
+4. Select the project in the main view, go to the "Info" tab and under "Custom iOS Target Properties" remove the line "Main storyboard file base name"
+5. Select the project in the main view, go to the "Build Settings" tab, select "All", and edit "Header Search Path" and drag over the SDL "Public Headers" folder from the left
+6. Select the project in the main view, go to the "Build Phases" tab, select "Link Binary With Libraries", and add SDL2.framework from "Framework-iOS"
+7. In the main view, expand SDL -> Library Source -> main -> uikit and drag SDL_uikit_main.c into your game files
+8. Add the source files that you would normally have for an SDL program, making sure to have #include "SDL.h" at the top of the file containing your main() function.
+9. Add any assets that your application needs.
+10. Enjoy!
-Here is the easiest method:
-1. Build the SDL library (libSDL2.a) and the iPhone SDL Application template.
-2. Install the iPhone SDL Application template by copying it to one of Xcode's template directories. I recommend creating a directory called "SDL" in "/Developer/Platforms/iOS.platform/Developer/Library/Xcode/Project Templates/" and placing it there.
-3. Start a new project using the template. The project should be immediately ready for use with SDL.
-Here is a more manual method:
-1. Create a new iOS view based application.
-2. Build the SDL static library (libSDL2.a) for iOS and include them in your project. Xcode will ignore the library that is not currently of the correct architecture, hence your app will work both on iOS and in the iOS Simulator.
-3. Include the SDL header files in your project.
-4. Remove the ApplicationDelegate.h and ApplicationDelegate.m files -- SDL for iOS provides its own UIApplicationDelegate. Remove MainWindow.xib -- SDL for iOS produces its user interface programmatically.
-5. Delete the contents of main.m and program your app as a regular SDL program instead. You may replace main.m with your own main.c, but you must tell Xcode not to use the project prefix file, as it includes Objective-C code.
+TODO: Add information regarding App Store requirements such as icons, etc.
Notes -- Retina / High-DPI and window sizes