Commit 73b75ac
Bazel: import React/ReactNativeDependencies as dynamic frameworks (fixes app launch)
The SPM prebuild ships React.framework and ReactNativeDependencies.framework as
dynamic frameworks (dylibs), but they were imported via apple_static_xcframework_import,
so rules_apple linked them with @rpath load commands without embedding them. The app
crashed at launch in dyld: 'Library not loaded: @rpath/React.framework/Versions/A/React'.
Importing all three (React, ReactNativeDependencies, hermes) as dynamic embeds them in
Contents/Frameworks. Verified: RNTesterMacBazel.app now launches and stays running
(loads the embedded Metro bundle + Hermes offline).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0104b7a commit 73b75ac
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
0 commit comments