From 62100a328c6428429f4044b5b458fb544fc5b81a Mon Sep 17 00:00:00 2001 From: Logan Shire Date: Mon, 2 Jun 2025 16:33:03 -0400 Subject: [PATCH] Work around bug in Xcode 16.3 --- .../src/Generator/ProcessSwiftArgs.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/generators/target_build_settings/src/Generator/ProcessSwiftArgs.swift b/tools/generators/target_build_settings/src/Generator/ProcessSwiftArgs.swift index 9c40792a1..653f948d9 100644 --- a/tools/generators/target_build_settings/src/Generator/ProcessSwiftArgs.swift +++ b/tools/generators/target_build_settings/src/Generator/ProcessSwiftArgs.swift @@ -317,6 +317,12 @@ extension Generator.ProcessSwiftArgs { ("OTHER_SWIFT_FLAGS", args.joined(separator: " ").pbxProjEscaped) ) + // Workaround for bug in Xcode 16.3+ + // https://github.com/MobileNativeFoundation/rules_xcodeproj/issues/3171 + buildSettings.append( + ("SWIFT_ENABLE_EMIT_CONST_VALUES", "NO") + ) + return ( hasDebugInfo, clangArgs,