From 6ebe70eef056640d04cc578d09d20853bb0c8a30 Mon Sep 17 00:00:00 2001 From: Plo4ox Date: Mon, 29 Jan 2018 03:11:22 +0100 Subject: [PATCH] Fix - Unable to build React target after a 'pod install' The following error was thrown: 'string' file not found To fix the issue, the Yoga's headers importing classes from the STL have been excluded from the generated umbrella file via the podspec. --- ReactCommon/yoga/yoga.podspec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ReactCommon/yoga/yoga.podspec b/ReactCommon/yoga/yoga.podspec index c38f4c09796cb6..cc0f0fc6e8f650 100644 --- a/ReactCommon/yoga/yoga.podspec +++ b/ReactCommon/yoga/yoga.podspec @@ -41,4 +41,8 @@ Pod::Spec.new do |spec| 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 + + # Only expose the needed headers + spec.public_header_files = 'yoga/Yoga.h', 'yoga/YGEnums.h', 'yoga/YGMacros.h' + end