Commit 7164f61
SwiftPM: stop baking an absolute HERMES_CLI_PATH into the app pbxproj
`spm add` wrote the machine-specific absolute path of hermesc from the
hermes-compiler npm package into every build configuration, and apps
commit that pbxproj. react-native-xcode.sh already resolves hermesc at
build time through react-native's dependency graph, so drop the write.
Widen the shell fallback correctly: it was gated on PODS_ROOT being
absent, so a SwiftPM app keeping side-by-side non-RN pods never reached
it. Key it on the hermes-engine pod directory instead, so any app that
has the pod keeps its previous behavior exactly.
Existing injected projects clean up on the next `spm add`/`update`,
which strips every recorded scalar before re-injecting.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent 9994431 commit 7164f61
5 files changed
Lines changed: 135 additions & 183 deletions
File tree
- packages/react-native/scripts
- spm
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments