Commit a6a3c04
feat(ios-prebuild)!: make ReactNativeHeaders pure-RN
Every namespace now has exactly ONE physical home: RN namespaces in
ReactNativeHeaders, third-party deps namespaces in the
ReactNativeDependenciesHeaders sidecar / the ReactNativeDependencies
pod. Relocated deps copies are what made the 2026-07-03 SocketRocket
regression possible (duplicate @interface + poisoned module graph under
use_frameworks when a real pod coexisted with relocated copies) - that
bug class is now structurally impossible, and the SocketRocket
exclusion list is deleted rather than maintained.
- headers-spec.js: R2 rewritten; DEPS_NAMESPACES now includes
SocketRocket (= the sidecar contents = the artifact's Headers/ dirs,
set-equality enforced); DEPS_NAMESPACES_NOT_RELOCATED deleted.
- headers-compose.js: RNH stages RN headers only; ensureHeadersLayout
also builds the sidecar from the cache slot's deps headers and
returns it, so SwiftPM consumers need no published sidecar.
- headers-verify.js: structural gate flipped - deps namespaces must be
ABSENT from RNH; compile gates take the deps artifact's Headers on
the include path (exactly how consumers resolve them).
- CocoaPods: NEW ReactNativeDependenciesUtils.configure_aggregate_xcconfig
injects $(PODS_ROOT)/ReactNativeDependencies/Headers into the
aggregate and every pod target in prebuilt-deps mode, mirroring the
rncore injection. Pods previously resolved folly/glog through the
globally-injected React-Core-prebuilt/Headers flatten of RNH; after
the flip the deps pod is the single global home, so the mirror
injection is what keeps arbitrary pods compiling.
Verified: headers gate green (include-health, structural, compile
smokes vs the deps include path); rn-tester prebuilt static + dynamic
(the regression config), helloworld static, source-core+prebuilt-deps
(React compiled from source resolves folly via the deps pod), and a
source-mode control with an unchanged dependency graph.
BREAKING (prebuilt artifacts only): ReactNativeHeaders.xcframework no
longer contains folly/glog/boost/fmt/double-conversion/fast_float;
consumers reaching them through React-Core-prebuilt/Headers must use
the ReactNativeDependencies pod / ReactNativeDependenciesHeaders
sidecar paths instead.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 6917845 commit a6a3c04
12 files changed
Lines changed: 213 additions & 199 deletions
File tree
- .github/workflows
- packages/react-native
- scripts
- cocoapods
- __docs__
- ios-prebuild
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
517 | 519 | | |
518 | 520 | | |
519 | 521 | | |
| |||
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
153 | 199 | | |
154 | 200 | | |
155 | 201 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
221 | 238 | | |
222 | 239 | | |
223 | 240 | | |
| |||
0 commit comments