Skip to content

Commit 58eb2ee

Browse files
committed
fix(app, ios): generate app package module map for swift interop
this should resolve an issue seen with my expo demo script where static linking wasn't working correctly via per-module directives in combination with the new prebuilt (non-static...) react-native core
1 parent e5685a0 commit 58eb2ee

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

packages/app/RNFBApp.podspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ Pod::Spec.new do |s|
3838
Pod::UI.puts '[react-native-firebase] '.yellow + "Suppress this with environment variable RNFB_SUPPRESS_NEW_ARCHITECTURE_WARNING=1"
3939
end
4040

41+
# App must define modules for static framework integration of other packages to work
42+
s.pod_target_xcconfig = {
43+
"DEFINES_MODULE" => "YES",
44+
}
4145

4246
# React Native dependencies
4347
if defined?(install_modules_dependencies()) != nil

tests/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2601,7 +2601,7 @@ SPEC CHECKSUMS:
26012601
RNCAsyncStorage: 6a8127b6987dc9fbce778669b252b14c8355c7ce
26022602
RNDeviceInfo: 36d7f232bfe7c9b5c494cb7793230424ed32c388
26032603
RNFBAnalytics: 00e723640ce224f2c2f817bec41d777af05b346b
2604-
RNFBApp: c6547ed2bc301e18ff03a7fd038f3ac615324681
2604+
RNFBApp: 56d130ab662d2082140910f8325c2e07397e35e0
26052605
RNFBAppCheck: 1778ca2732bd9f1814db88c85242fde0f26a6168
26062606
RNFBAppDistribution: bd0a27cf30ce6ccfa2049c813a21946972d0354d
26072607
RNFBAuth: a8b369fe300bf678b5f99ae3ad069b408aa25f1b

0 commit comments

Comments
 (0)