From be93092c1b8a079f74dcdc129afc3767f03b8a2e Mon Sep 17 00:00:00 2001 From: nik910 Date: Fri, 19 Jul 2024 02:05:24 -0700 Subject: [PATCH] =?UTF-8?q?Adding=20space=20to=20$(inherited)=20string=20t?= =?UTF-8?q?o=20avoid=20merging=20of=20inherited=20and=E2=80=A6=20(#45520)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Added space to $(inherited) string to avoid creation of wrong cpp flags in RCTAppDelegate podspec Screenshot 2024-07-18 at 8 51 19 PM ## Changelog: [IOS] [FIXED] - Building of iOS project when RCTAppDelegate is used in the project Pull Request resolved: https://github.com/facebook/react-native/pull/45520 Test Plan: To test this you can simply change in your node modules and run pod install, the build will now work successfully Reviewed By: cipolleschi Differential Revision: D59950906 Pulled By: arushikesarwani94 fbshipit-source-id: 0d58620aa0be7ac4fcbcd309f06df0eef7844016 --- .../Libraries/AppDelegate/React-RCTAppDelegate.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec b/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec index 71765def33b..28288429cf5 100644 --- a/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec +++ b/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec @@ -26,7 +26,7 @@ use_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == '1' new_arch_enabled_flag = (is_new_arch_enabled ? " -DRCT_NEW_ARCH_ENABLED" : "") is_fabric_enabled = true #is_new_arch_enabled || ENV["RCT_FABRIC_ENABLED"] hermes_flag = (use_hermes ? " -DUSE_HERMES" : "") -other_cflags = "$(inherited)" + folly_compiler_flags + new_arch_enabled_flag + hermes_flag +other_cflags = "$(inherited) " + folly_compiler_flags + new_arch_enabled_flag + hermes_flag header_search_paths = [ "$(PODS_TARGET_SRCROOT)/../../ReactCommon",