From c8fcac2765e0f79f0e7bb3a422a65698aec62536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Ro=C5=BCniata?= <56474758+krozniata@users.noreply.github.com> Date: Thu, 8 May 2025 02:12:45 -0700 Subject: [PATCH] fix(iOS): enable DEFINES_MODULE in `React-jsc` (#51160) Summary: Enables `DEFINES_MODULE` in `React-jsc.podspec` After upgrading app to RN `0.79`, when installing pods with JSC enabled there is an error being thrown that `The following Swift pods cannot yet be integrated as static libraries` `The Swift pod 'RNFlashList' depends upon 'React-jsc', which does not define modules. ...` when installing packages that use Swift ## Changelog: [IOS] [CHANGED] - enable `DEFINES_MODULE` in `React-jsc.podspec` Pull Request resolved: https://github.com/facebook/react-native/pull/51160 Test Plan: RNTester runs and builds correctly Reviewed By: huntie Differential Revision: D74325357 Pulled By: cipolleschi fbshipit-source-id: b994b7e678633440d5e362ae6965b2d5188d34f1 --- packages/react-native/ReactCommon/jsc/React-jsc.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/jsc/React-jsc.podspec b/packages/react-native/ReactCommon/jsc/React-jsc.podspec index ed07e939fc9..22f3314a3be 100644 --- a/packages/react-native/ReactCommon/jsc/React-jsc.podspec +++ b/packages/react-native/ReactCommon/jsc/React-jsc.podspec @@ -32,6 +32,6 @@ Pod::Spec.new do |s| s.dependency "React-jsi", version s.subspec "Fabric" do |ss| - ss.pod_target_xcconfig = { "OTHER_CFLAGS" => "$(inherited)" } + ss.pod_target_xcconfig = { "OTHER_CFLAGS" => "$(inherited)", "DEFINES_MODULE" => "YES" } end end