Commit 3aa78b0
fix(ios): warn in dev when RCTI18nStrings.bundle cannot be resolved
The resources shipped inside the prebuilt React.framework fail SILENTLY
if the framework is ever consumed without being embedded: every localized
string falls back to its untranslated default and the privacy manifest
drops out of the app's aggregated privacy report, with no build error.
Emit a dev-only, once-per-process RCTLogWarn when the bundle resolves nil
so an embed regression is observable in every dev console instead of
shipping quietly.
No behavior change in release (RCT_DEV compiled out) or on the happy path.
Not unit-testable (ObjC runtime diagnostics, no jest surface); both
RCT_DEV and NDEBUG preprocessing paths compile-verified via clang
-fsyntax-only.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 7b29638 commit 3aa78b0
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
33 | 47 | | |
34 | 48 | | |
35 | 49 | | |
| |||
0 commit comments