From 47a56db5f64c7230a64254c3d8e6f3bac3b4fb59 Mon Sep 17 00:00:00 2001 From: Kesha Antonov Date: Thu, 22 Feb 2024 06:00:12 -0800 Subject: [PATCH] Update Yoga.podspec: fixes archiving for Mac Catalyst Summary: Hi When I tried to archive macos catalyst app in Xcode I got errors: Screenshot 2024-02-05 at 00 03 32 This PR fixes archiving by linking PrivateHeaders in yoga.framework Screenshot 2024-02-05 at 01 03 48 Screenshot 2024-02-05 at 01 05 18 Prev PR here https://github.com/facebook/react-native/pull/42159 ## Changelog: [IOS] [FIXED] - fixed archiving for Mac Catalyst X-link: https://github.com/facebook/react-native/pull/42847 Reviewed By: NickGerleman Differential Revision: D53920474 Pulled By: cipolleschi fbshipit-source-id: 0534d9aa9d249e4e0c35ada0464c38c291be7f84 --- Yoga.podspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Yoga.podspec b/Yoga.podspec index 4389cfe9..7586327b 100644 --- a/Yoga.podspec +++ b/Yoga.podspec @@ -25,7 +25,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',