From a8a2f1a578624333a113f285327987fb4f3b6c15 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 5 Apr 2024 10:34:23 +0100 Subject: [PATCH] [Yoga] Fix archiving for Mac Catalyst --- packages/react-native/ReactCommon/yoga/Yoga.podspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/yoga/Yoga.podspec b/packages/react-native/ReactCommon/yoga/Yoga.podspec index 2288fbcae6ef32..f2c3b37c55a574 100644 --- a/packages/react-native/ReactCommon/yoga/Yoga.podspec +++ b/packages/react-native/ReactCommon/yoga/Yoga.podspec @@ -32,7 +32,10 @@ Pod::Spec.new do |spec| spec.requires_arc = false spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' - } + }.merge!(ENV['USE_FRAMEWORKS'] != nil ? { + 'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"' +} : {}) + spec.compiler_flags = [ '-fno-omit-frame-pointer', '-fexceptions',