SDL_net: Xcode: Remove vestiges of SDL_image and add HAVE_GETIFADDRS to CPPFLAGS

From 841e11ad675e1e1ace30a443670c7298e1a69fc0 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 24 May 2026 20:56:37 +0300
Subject: [PATCH] Xcode: Remove vestiges of SDL_image and add HAVE_GETIFADDRS
 to CPPFLAGS

---
 Xcode/SDL_net.xcodeproj/project.pbxproj | 54 +------------------------
 1 file changed, 2 insertions(+), 52 deletions(-)

diff --git a/Xcode/SDL_net.xcodeproj/project.pbxproj b/Xcode/SDL_net.xcodeproj/project.pbxproj
index 7b256fd..2cd0964 100644
--- a/Xcode/SDL_net.xcodeproj/project.pbxproj
+++ b/Xcode/SDL_net.xcodeproj/project.pbxproj
@@ -34,18 +34,12 @@
 
 /* Begin PBXBuildFile section */
 		AA92857F2EDB8FB20005200A /* SDL_net.c in Sources */ = {isa = PBXBuildFile; fileRef = AA92857E2EDB8FB20005200A /* SDL_net.c */; };
-		AADBAC89175C6B4C004F8ED2 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 007288A60F0DA79800C302A9 /* ApplicationServices.framework */; platformFilters = (macos, ); };
-		AADBAC8A175C6B4F004F8ED2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61F85449145A19BC002CA294 /* Foundation.framework */; };
 		BE1FA71A07AF4C44004B6283 /* SDL_net.h in Headers */ = {isa = PBXBuildFile; fileRef = 1014BAEA010A4B677F000001 /* SDL_net.h */; settings = {ATTRIBUTES = (Public, ); }; };
 		F34123C02D41A75D00D6C2B7 /* INSTALL.md in Resources */ = {isa = PBXBuildFile; fileRef = F34123BF2D41A75D00D6C2B7 /* INSTALL.md */; };
 		F34123C42D41A79D00D6C2B7 /* LICENSE.txt in Resources */ = {isa = PBXBuildFile; fileRef = F34123C32D41A79D00D6C2B7 /* LICENSE.txt */; };
 		F34123C62D41A7D800D6C2B7 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = F34123C52D41A7D800D6C2B7 /* README.md */; };
 		F34126942D4B3D6900D6C2B7 /* SDL3.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F34126932D4B3D6900D6C2B7 /* SDL3.framework */; };
 		F382070E284EF58C004DD584 /* CMake in Resources */ = {isa = PBXBuildFile; fileRef = F3820707284EF58C004DD584 /* CMake */; };
-		F3E1AAEB281CBABD00740E39 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3E1AAEA281CBABD00740E39 /* CoreGraphics.framework */; platformFilters = (ios, tvos, xros, ); };
-		F3E1AAEC281CBB1F00740E39 /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3E1AAE8281CBA7B00740E39 /* ImageIO.framework */; platformFilters = (ios, tvos, xros, ); };
-		F3E1AAEE281CBD9F00740E39 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3E1AAED281CBD9F00740E39 /* UIKit.framework */; platformFilters = (ios, tvos, xros, ); };
-		F3E1AAF0281CBDD100740E39 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3E1AAEF281CBDD100740E39 /* MobileCoreServices.framework */; platformFilters = (ios, tvos, xros, ); };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
@@ -59,9 +53,7 @@
 /* End PBXContainerItemProxy section */
 
 /* Begin PBXFileReference section */
-		007288A60F0DA79800C302A9 /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = /System/Library/Frameworks/ApplicationServices.framework; sourceTree = "<absolute>"; };
 		1014BAEA010A4B677F000001 /* SDL_net.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SDL_net.h; path = ../include/SDL3_net/SDL_net.h; sourceTree = SOURCE_ROOT; };
-		61F85449145A19BC002CA294 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
 		AA92857E2EDB8FB20005200A /* SDL_net.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = SDL_net.c; path = ../src/SDL_net.c; sourceTree = SOURCE_ROOT; };
 		BE1FA72D07AF4C44004B6283 /* Info-Framework.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-Framework.plist"; sourceTree = "<group>"; };
 		BE1FA72E07AF4C45004B6283 /* SDL3_net.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDL3_net.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -72,10 +64,6 @@
 		F34126932D4B3D6900D6C2B7 /* SDL3.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDL3.framework; path = macOS/SDL3.framework; sourceTree = "<group>"; };
 		F3547625282AE1C6007E9EDA /* config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = config.xcconfig; sourceTree = "<group>"; };
 		F3820707284EF58C004DD584 /* CMake */ = {isa = PBXFileReference; lastKnownFileType = folder; path = CMake; sourceTree = "<group>"; };
-		F3E1AAE8281CBA7B00740E39 /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = System/Library/Frameworks/ImageIO.framework; sourceTree = SDKROOT; };
-		F3E1AAEA281CBABD00740E39 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
-		F3E1AAED281CBD9F00740E39 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
-		F3E1AAEF281CBDD100740E39 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/iOSSupport/System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -84,12 +72,6 @@
 			buildActionMask = 2147483647;
 			files = (
 				F34126942D4B3D6900D6C2B7 /* SDL3.framework in Frameworks */,
-				AADBAC89175C6B4C004F8ED2 /* ApplicationServices.framework in Frameworks */,
-				F3E1AAEB281CBABD00740E39 /* CoreGraphics.framework in Frameworks */,
-				AADBAC8A175C6B4F004F8ED2 /* Foundation.framework in Frameworks */,
-				F3E1AAEC281CBB1F00740E39 /* ImageIO.framework in Frameworks */,
-				F3E1AAF0281CBDD100740E39 /* MobileCoreServices.framework in Frameworks */,
-				F3E1AAEE281CBD9F00740E39 /* UIKit.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -138,12 +120,6 @@
 			isa = PBXGroup;
 			children = (
 				F34126932D4B3D6900D6C2B7 /* SDL3.framework */,
-				007288A60F0DA79800C302A9 /* ApplicationServices.framework */,
-				F3E1AAEA281CBABD00740E39 /* CoreGraphics.framework */,
-				61F85449145A19BC002CA294 /* Foundation.framework */,
-				F3E1AAE8281CBA7B00740E39 /* ImageIO.framework */,
-				F3E1AAEF281CBDD100740E39 /* MobileCoreServices.framework */,
-				F3E1AAED281CBD9F00740E39 /* UIKit.framework */,
 			);
 			name = Frameworks;
 			sourceTree = "<group>";
@@ -348,20 +324,7 @@
 				"FRAMEWORK_SEARCH_PATHS[sdk=xr*]" = "\"$(PROJECT_DIR)/iOS\"";
 				GCC_OPTIMIZATION_LEVEL = 0;
 				GCC_PREPROCESSOR_DEFINITIONS = (
-					USE_STBIMAGE,
-					LOAD_BMP,
-					LOAD_GIF,
-					LOAD_JPG,
-					LOAD_LBM,
-					LOAD_PCX,
-					LOAD_PNG,
-					LOAD_PNM,
-					LOAD_QOI,
-					LOAD_SVG,
-					LOAD_TGA,
-					LOAD_XCF,
-					LOAD_XPM,
-					LOAD_XV,
+					HAVE_GETIFADDRS,
 					"$(CONFIG_PREPROCESSOR_DEFINITIONS)",
 				);
 				GCC_SYMBOLS_PRIVATE_EXTERN = YES;
@@ -417,20 +380,7 @@
 				"FRAMEWORK_SEARCH_PATHS[sdk=xr*]" = "\"$(PROJECT_DIR)/iOS\"";
 				GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
 				GCC_PREPROCESSOR_DEFINITIONS = (
-					USE_STBIMAGE,
-					LOAD_BMP,
-					LOAD_GIF,
-					LOAD_JPG,
-					LOAD_LBM,
-					LOAD_PCX,
-					LOAD_PNG,
-					LOAD_PNM,
-					LOAD_QOI,
-					LOAD_SVG,
-					LOAD_TGA,
-					LOAD_XCF,
-					LOAD_XPM,
-					LOAD_XV,
+					HAVE_GETIFADDRS,
 					"$(CONFIG_PREPROCESSOR_DEFINITIONS)",
 				);
 				GCC_SYMBOLS_PRIVATE_EXTERN = YES;