Commit 285eea1
committed
perf(ci): patch prebuilt RNCore instead of disabling — saves 5-10 min
之前禁 prebuilt(RCT_USE_PREBUILT_RNCORE=0) 绕开 'memory' file not found,
代价是 CI 每次从源码编译 React-Core 慢 5-10 分钟。改成原地 patch
prebuilt xcframework 里的 React-umbrella.h + module.modulemap
(react/react-native#56862 改的 ios-prebuild/templates/)。
变更:
- example/ios/Podfile post_install: ruby patch 把 RCTDefines.h 移到
RCTBridgeConstants.h 之前 + 删 modulemap wildcard sub-module
- ci.yml build-ios: RCT_USE_PREBUILT_RNCORE=1, RCT_USE_RN_DEP=1 恢复
本地验证: prebuilt+patch 模式 yarn build:ios 成功生成 .app,零
'memory' file not found 报错。
清理时机: RN 0.86.0 stable (rc.2 已验证含 fix) → 升 RN + 删 patch。1 parent c288b45 commit 285eea1
2 files changed
Lines changed: 36 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 125 | + | |
| 126 | + | |
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
33 | 67 | | |
34 | 68 | | |
0 commit comments