From 794aaa52d39f2c419fcd49126c69dff3030e7bb9 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 25 Apr 2024 08:28:26 -0700 Subject: [PATCH] Fix enable hermes debugger in Bridgeless mode Summary: Set the proper build flags for debugging in Bridgeless mode. This fixes [#44240](https://github.com/facebook/react-native/issues/44240) ## Changelog: [iOS][Fixed] - Add `HERMES_ENABLE_DEBUGGER=1` flag to React-RuntimeApple Reviewed By: cortinico Differential Revision: D56575647 fbshipit-source-id: a0613a5d46caeb1d3e636e54ecd43428fbaf46e8 --- packages/react-native/scripts/cocoapods/utils.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/scripts/cocoapods/utils.rb b/packages/react-native/scripts/cocoapods/utils.rb index d7dc75c3a2e921..1b16090b2615db 100644 --- a/packages/react-native/scripts/cocoapods/utils.rb +++ b/packages/react-native/scripts/cocoapods/utils.rb @@ -44,6 +44,7 @@ def self.has_pod(installer, name) def self.set_gcc_preprocessor_definition_for_React_hermes(installer) self.add_build_settings_to_pod(installer, "GCC_PREPROCESSOR_DEFINITIONS", "HERMES_ENABLE_DEBUGGER=1", "React-hermes", "Debug") self.add_build_settings_to_pod(installer, "GCC_PREPROCESSOR_DEFINITIONS", "HERMES_ENABLE_DEBUGGER=1", "hermes-engine", "Debug") + self.add_build_settings_to_pod(installer, "GCC_PREPROCESSOR_DEFINITIONS", "HERMES_ENABLE_DEBUGGER=1", "React-RuntimeHermes", "Debug") end def self.turn_off_resource_bundle_react_core(installer)