SDL_image: Added missing files for the Xcode project

From 4cadb2bfcc929e338a36426248381dda93ff1d15 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 30 Apr 2022 15:08:10 -0700
Subject: [PATCH] Added missing files for the Xcode project

---
 Xcode/showimage/SDL_uikit_main.c              | 20 +++++++++++++++++++
 Xcode/showimage/macOS/macOS.entitlements      | 10 ++++++++++
 .../showimage.xcodeproj/project.pbxproj       |  6 +++---
 3 files changed, 33 insertions(+), 3 deletions(-)
 create mode 100644 Xcode/showimage/SDL_uikit_main.c
 create mode 100644 Xcode/showimage/macOS/macOS.entitlements

diff --git a/Xcode/showimage/SDL_uikit_main.c b/Xcode/showimage/SDL_uikit_main.c
new file mode 100644
index 0000000..62cfffd
--- /dev/null
+++ b/Xcode/showimage/SDL_uikit_main.c
@@ -0,0 +1,20 @@
+/*
+    SDL_uikit_main.c, placed in the public domain by Sam Lantinga  3/18/2019
+*/
+
+/* Include the SDL main definition header */
+#include "SDL_main.h"
+
+#ifndef SDL_MAIN_HANDLED
+#ifdef main
+#undef main
+#endif
+
+int
+main(int argc, char *argv[])
+{
+    return SDL_UIKitRunApp(argc, argv, SDL_main);
+}
+#endif /* !SDL_MAIN_HANDLED */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/Xcode/showimage/macOS/macOS.entitlements b/Xcode/showimage/macOS/macOS.entitlements
new file mode 100644
index 0000000..f2ef3ae
--- /dev/null
+++ b/Xcode/showimage/macOS/macOS.entitlements
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+    <key>com.apple.security.app-sandbox</key>
+    <true/>
+    <key>com.apple.security.files.user-selected.read-only</key>
+    <true/>
+</dict>
+</plist>
diff --git a/Xcode/showimage/showimage.xcodeproj/project.pbxproj b/Xcode/showimage/showimage.xcodeproj/project.pbxproj
index 76eaee0..f0661ec 100644
--- a/Xcode/showimage/showimage.xcodeproj/project.pbxproj
+++ b/Xcode/showimage/showimage.xcodeproj/project.pbxproj
@@ -101,7 +101,7 @@
 		F3ED80B3281D9E8900C33C5B /* showimage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = showimage.app; sourceTree = BUILT_PRODUCTS_DIR; };
 		F3ED80B9281D9E8900C33C5B /* showimage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = showimage.app; sourceTree = BUILT_PRODUCTS_DIR; };
 		F3ED80BB281D9E8900C33C5B /* macOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = macOS.entitlements; sourceTree = "<group>"; };
-		F3ED80CA281D9ECB00C33C5B /* showimage.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = showimage.c; path = ../../../showimage.c; sourceTree = "<group>"; };
+		F3ED80CA281D9ECB00C33C5B /* showimage.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = showimage.c; path = ../../showimage.c; sourceTree = SOURCE_ROOT; };
 		F3ED80CD281D9ED600C33C5B /* SDL_image.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDL_image.xcodeproj; path = ../SDL_image.xcodeproj; sourceTree = "<group>"; };
 		F3ED80E1281D9F2100C33C5B /* showimage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = showimage.app; sourceTree = BUILT_PRODUCTS_DIR; };
 		F3ED80E4281DA17800C33C5B /* SDL2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDL2.framework; path = ../macOS/SDL2.framework; sourceTree = "<group>"; };
@@ -159,8 +159,8 @@
 				F3ED80CA281D9ECB00C33C5B /* showimage.c */,
 				F3ED80EF281DA3BD00C33C5B /* SDL_uikit_main.c */,
 			);
-			path = Shared;
-			sourceTree = "<group>";
+			name = Shared;
+			sourceTree = SOURCE_ROOT;
 		};
 		F3ED80B4281D9E8900C33C5B /* Products */ = {
 			isa = PBXGroup;