# SDL: Xcode expects SUPPORTED\_PLATFORMS to be "macosx" (thanks @MaddTheSane!)

**URL:** <https://discourse.libsdl.org/t/sdl-xcode-expects-supported-platforms-to-be-macosx-thanks-maddthesane/40645>\
**Category:** SDL Commits\
**Created:** [November 26, 2022, 1:18am UTC](https://discourse.libsdl.org/t/sdl-xcode-expects-supported-platforms-to-be-macosx-thanks-maddthesane/40645 "2022-11-26T01:18:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [November 26, 2022, 1:18am UTC](https://discourse.libsdl.org/t/sdl-xcode-expects-supported-platforms-to-be-macosx-thanks-maddthesane/40645/1 "2022-11-26T01:18:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/6786dc481d932710a70481efd8990fbbaf68ab26>

```diff
From 6786dc481d932710a70481efd8990fbbaf68ab26 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 25 Nov 2022 17:16:34 -0800
Subject: [PATCH] Xcode expects SUPPORTED_PLATFORMS to be "macosx" (thanks
 @MaddTheSane!)

---
 .../SDLTest/SDLTest.xcodeproj/project.pbxproj | 20 +++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj b/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj
index f850cf9ae59d..051c920068c2 100644
--- a/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj
+++ b/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj
@@ -3124,7 +3124,7 @@
 			buildSettings = {
 				GCC_PREPROCESSOR_DEFINITIONS = HAVE_OPENGL;
 				PRODUCT_NAME = testgl2;
- SUPPORTED_PLATFORMS = macos;
+ SUPPORTED_PLATFORMS = macosx;
 			};
 			name = Debug;
 		};
@@ -3133,7 +3133,7 @@
 			buildSettings = {
 				GCC_PREPROCESSOR_DEFINITIONS = HAVE_OPENGL;
 				PRODUCT_NAME = testgl2;
- SUPPORTED_PLATFORMS = macos;
+ SUPPORTED_PLATFORMS = macosx;
 			};
 			name = Release;
 		};
@@ -3225,7 +3225,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				PRODUCT_NAME = testnative;
- SUPPORTED_PLATFORMS = macos;
+ SUPPORTED_PLATFORMS = macosx;
 			};
 			name = Debug;
 		};
@@ -3233,7 +3233,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				PRODUCT_NAME = testnative;
- SUPPORTED_PLATFORMS = macos;
+ SUPPORTED_PLATFORMS = macosx;
 			};
 			name = Release;
 		};
@@ -3309,13 +3309,13 @@
 				INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
 				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
 				LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
- "LD_RUNPATH_SEARCH_PATHS[sdk=macos*]" = "@executable_path/../Frameworks";
+ "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
 				MACOSX_DEPLOYMENT_TARGET = 10.9;
 				MARKETING_VERSION = 1.0;
 				ONLY_ACTIVE_ARCH = YES;
 				OTHER_LDFLAGS = "$(CONFIG_FRAMEWORK_LDFLAGS)";
 				PRODUCT_BUNDLE_IDENTIFIER = "org.libsdl.$(PRODUCT_NAME)";
- SUPPORTED_PLATFORMS = "macos iphonesimulator iphoneos appletvsimulator appletvos";
+ SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
 				SUPPORTS_MACCATALYST = YES;
 				TVOS_DEPLOYMENT_TARGET = 9.0;
 			};
@@ -3447,12 +3447,12 @@
 				INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
 				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
 				LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
- "LD_RUNPATH_SEARCH_PATHS[sdk=macos*]" = "@executable_path/../Frameworks";
+ "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
 				MACOSX_DEPLOYMENT_TARGET = 10.9;
 				MARKETING_VERSION = 1.0;
 				OTHER_LDFLAGS = "$(CONFIG_FRAMEWORK_LDFLAGS)";
 				PRODUCT_BUNDLE_IDENTIFIER = "org.libsdl.$(PRODUCT_NAME)";
- SUPPORTED_PLATFORMS = "macos iphonesimulator iphoneos appletvsimulator appletvos";
+ SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
 				SUPPORTS_MACCATALYST = YES;
 				TVOS_DEPLOYMENT_TARGET = 9.0;
 			};
@@ -3632,7 +3632,7 @@
 				ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES;
 				EXECUTABLE_PREFIX = lib;
 				PRODUCT_NAME = "$(TARGET_NAME)";
- SUPPORTED_PLATFORMS = "watchsimulator watchos macos iphonesimulator iphoneos driverkit appletvsimulator appletvos";
+ SUPPORTED_PLATFORMS = "watchsimulator watchos macosx iphonesimulator iphoneos driverkit appletvsimulator appletvos";
 				SUPPORTS_MACCATALYST = YES;
 			};
 			name = Debug;
@@ -3643,7 +3643,7 @@
 				ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES;
 				EXECUTABLE_PREFIX = lib;
 				PRODUCT_NAME = "$(TARGET_NAME)";
- SUPPORTED_PLATFORMS = "watchsimulator watchos macos iphonesimulator iphoneos driverkit appletvsimulator appletvos";
+ SUPPORTED_PLATFORMS = "watchsimulator watchos macosx iphonesimulator iphoneos driverkit appletvsimulator appletvos";
 				SUPPORTS_MACCATALYST = YES;
 			};
 			name = Release;

```
