Commit fbdcf7a
fix(iOS): stamp the React Native version in the composed prebuilt headers
The prebuilt iOS core artifacts shipped ReactNativeVersion.h with the
1000.0.0 dev sentinel: the compose-xcframework job re-derives the shipped
headers from its own fresh (unstamped) checkout, while only build-rn-slice
runs set-rn-artifacts-version.js. Since the header-facades change,
libraries resolve the prebuilt header instead of the stamped npm copy, so
any library gating on REACT_NATIVE_VERSION_MAJOR/MINOR compiles the wrong
branch (react-native-unistyles in nightly-tests).
Rather than re-stamp (and then revert) the compose checkout, source just
that one build-stamped header's CONTENT from the built header tree the
compose job already downloads (.build/headers): stageEntries now takes an
overlay dir and, for ReactNativeVersion.h only, prefers the built copy
(stamped in the slice job) over the source sentinel. Header LAYOUT is
still spec-derived from source, and every other header still copies from
source, so a stale build tree can never ship wrong header content. Bump
the compose cache key so pre-fix unstamped composed artifacts are not
served.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent e640278 commit fbdcf7a
3 files changed
Lines changed: 34 additions & 6 deletions
File tree
- .github/workflows
- packages/react-native/scripts/ios-prebuild
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
133 | 151 | | |
134 | 152 | | |
135 | 153 | | |
| |||
145 | 163 | | |
146 | 164 | | |
147 | 165 | | |
| 166 | + | |
148 | 167 | | |
149 | 168 | | |
150 | 169 | | |
151 | 170 | | |
152 | | - | |
| 171 | + | |
153 | 172 | | |
154 | 173 | | |
155 | 174 | | |
| |||
239 | 258 | | |
240 | 259 | | |
241 | 260 | | |
| 261 | + | |
242 | 262 | | |
243 | 263 | | |
244 | 264 | | |
245 | | - | |
| 265 | + | |
246 | 266 | | |
247 | 267 | | |
248 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
| |||
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| 125 | + | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
| |||
0 commit comments