From cf036dbc7af16a8453c115372694dc51e8086fcf Mon Sep 17 00:00:00 2001 From: Orta Date: Wed, 21 Mar 2018 14:12:08 -0700 Subject: [PATCH] Updates Yoga to handle being in a Xcode framework project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Updates the Yoga Podspec to work with Cocoa frameworks. Replicated a2's work over on Yoga https://github.com/facebook/yoga/pull/726 (Which should also get merged too please ❤️ ) Set it manually in my own project and tested 👍 Only https://github.com/facebook/yoga/pull/726 [IOS] [BUGFIX] [Yoga] - Fixes to yoga.podspec when integrating into an iOS app using Cocoa frameworks. Closes https://github.com/facebook/react-native/pull/18492 Differential Revision: D7355907 Pulled By: hramos fbshipit-source-id: 6986d2bc560a23bb7f0f20b80e88bb440079891a --- ReactCommon/yoga/yoga.podspec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ReactCommon/yoga/yoga.podspec b/ReactCommon/yoga/yoga.podspec index c38f4c09796cb6..69144f9bb01bac 100644 --- a/ReactCommon/yoga/yoga.podspec +++ b/ReactCommon/yoga/yoga.podspec @@ -36,9 +36,13 @@ Pod::Spec.new do |spec| # Pinning to the same version as React.podspec. spec.platforms = { :ios => "8.0", :tvos => "9.2" } - # Set this environment variable when not using the `:path` option to install the pod. + # Set this environment variable when *not* using the `:path` option to install the pod. # E.g. when publishing this spec to a spec repo. source_files = 'yoga/**/*.{cpp,h}' source_files = File.join('ReactCommon/yoga', source_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION'] spec.source_files = source_files + + header_files = 'yoga/{Yoga,YGEnums,YGMacros}.h' + header_files = File.join('ReactCommon/yoga', header_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION'] + spec.public_header_files = header_files end