Skip to content

Commit

Permalink
Fix - Unable to build React target after a 'pod install'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Plo4ox committed Feb 17, 2018
1 parent 54dc11a commit 6ebe70e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ReactCommon/yoga/yoga.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6ebe70e

Please sign in to comment.