Skip to content

Commit

Permalink
[LOCAL] properly support both libraries and use_frameworks (#35624)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo committed Dec 13, 2022
1 parent ed16fdb commit c6fa633
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ReactCommon/ReactCommon.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ Pod::Spec.new do |s|
ss.subspec "core" do |sss|
sss.source_files = "react/nativemodule/core/ReactCommon/**/*.{cpp,h}",
"react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}"
sss.exclude_files = "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
excluded_files = ENV['USE_FRAMEWORKS'] == nil ?
"react/nativemodule/core/ReactCommon/LongLivedObject.h" :
"react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
sss.exclude_files = excluded_files
end

s.subspec "react_debug_core" do |sss|
Expand Down

0 comments on commit c6fa633

Please sign in to comment.