Skip to content

Commit c6fa633

Browse files
author
Riccardo
authored
[LOCAL] properly support both libraries and use_frameworks (#35624)
1 parent ed16fdb commit c6fa633

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ReactCommon/ReactCommon.podspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ Pod::Spec.new do |s|
6161
ss.subspec "core" do |sss|
6262
sss.source_files = "react/nativemodule/core/ReactCommon/**/*.{cpp,h}",
6363
"react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}"
64-
sss.exclude_files = "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
64+
excluded_files = ENV['USE_FRAMEWORKS'] == nil ?
65+
"react/nativemodule/core/ReactCommon/LongLivedObject.h" :
66+
"react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
67+
sss.exclude_files = excluded_files
6568
end
6669

6770
s.subspec "react_debug_core" do |sss|

0 commit comments

Comments
 (0)