From e97fdf7d9a40c3c7ac234cc448894e1ceed81719 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 28 Sep 2025 01:43:23 -0700 Subject: [PATCH] Xcode: Support new Icon Composer .icon resources These are a new type of resource folder (treated as a file) similar to xcassets, supported in Xcode 26 to provide application icons. --- Source/cmGlobalXCodeGenerator.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 1f92339a01..2854bb9f64 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1202,6 +1202,9 @@ std::string GetDirectoryValueFromFileExtension(std::string const& dirExt) if (ext == "xcassets"_s) { return "folder.assetcatalog"; } + if (ext == "icon"_s) { + return "folder.iconcomposer.icon"; + } return "folder"; } @@ -1276,6 +1279,9 @@ std::string GetSourcecodeValueFromFileExtension( } else if (ext == "xcconfig"_s) { keepLastKnownFileType = true; sourcecode = "text.xcconfig"; + } else if (ext == "icon"_s) { + keepLastKnownFileType = true; + sourcecode = "folder.iconcomposer.icon"; } // else // {