From f04b508bbca535f86b60ea7dc00e3d4ac664c485 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Sat, 29 Aug 2026 06:42:24 -0700 Subject: [PATCH] Raise the iOS presets' macOS deployment floor to 15.0 Xcode 27 rejects any iOS deployment target below 15.0, so cmake --preset ios cannot configure at all: the compiler check fails with "the range of supported deployment target versions is 15.0 to 27.0.x". CI does not see this because it runs Xcode 15.4, which still accepts 12.0. Removing the override instead of raising it does not work. third-party/CMakeLists.txt forwards CMAKE_OSX_DEPLOYMENT_TARGET into the flatcc and flatbuffers host sub-builds, so without it they inherit DEPLOYMENT_TARGET, 17.0, and fail with "cc: error: invalid version number in '-mmacosx-version-min=17.0'" because 17.0 is not a macOS version. The value has to be legal as both an iOS and a macOS floor. Swept it: 14.0 still fails, 15.0 and 17.0 pass, so 15.0 is the lowest that works and keeps the host sub-builds' floor as low as possible. llm and profiling stay at 12.0 on purpose, since they are host-only presets and Xcode 27 still accepts a macOS 12.0 floor. --- CMakePresets.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index fe74bc437b7..34a35123ef6 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -64,7 +64,7 @@ "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/ios.cmake", "PLATFORM": "OS64", "DEPLOYMENT_TARGET": "17.0", - "CMAKE_OSX_DEPLOYMENT_TARGET": "12.0" + "CMAKE_OSX_DEPLOYMENT_TARGET": "15.0" }, "condition": { "lhs": "${hostSystemName}", @@ -82,7 +82,7 @@ "EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/ios.cmake", "PLATFORM": "SIMULATORARM64", "DEPLOYMENT_TARGET": "17.0", - "CMAKE_OSX_DEPLOYMENT_TARGET": "12.0" + "CMAKE_OSX_DEPLOYMENT_TARGET": "15.0" }, "condition": { "lhs": "${hostSystemName}",