Skip to content

Commit cf036db

Browse files
ortafacebook-github-bot
authored andcommitted
Updates Yoga to handle being in a Xcode framework project
Summary: Updates the Yoga Podspec to work with Cocoa frameworks. Replicated a2's work over on Yoga facebook/yoga#726 (Which should also get merged too please ❤️ ) Set it manually in my own project and tested 👍 Only facebook/yoga#726 [IOS] [BUGFIX] [Yoga] - Fixes to yoga.podspec when integrating into an iOS app using Cocoa frameworks. Closes #18492 Differential Revision: D7355907 Pulled By: hramos fbshipit-source-id: 6986d2bc560a23bb7f0f20b80e88bb440079891a
1 parent d50cefb commit cf036db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ReactCommon/yoga/yoga.podspec

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ Pod::Spec.new do |spec|
3636
# Pinning to the same version as React.podspec.
3737
spec.platforms = { :ios => "8.0", :tvos => "9.2" }
3838

39-
# Set this environment variable when not using the `:path` option to install the pod.
39+
# Set this environment variable when *not* using the `:path` option to install the pod.
4040
# E.g. when publishing this spec to a spec repo.
4141
source_files = 'yoga/**/*.{cpp,h}'
4242
source_files = File.join('ReactCommon/yoga', source_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION']
4343
spec.source_files = source_files
44+
45+
header_files = 'yoga/{Yoga,YGEnums,YGMacros}.h'
46+
header_files = File.join('ReactCommon/yoga', header_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION']
47+
spec.public_header_files = header_files
4448
end

0 commit comments

Comments
 (0)