From 7e4626cda448a63aa2a8c18eeba5c97656e06e3c 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 47347936d8d603..066b9b7ac8e0ba 100644 --- a/packages/react-native/scripts/cocoapods/utils.rb +++ b/packages/react-native/scripts/cocoapods/utils.rb @@ -45,6 +45,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)