Commit b049760
fix(ci): remove ios/Pods from nscloud cache, clear before pod install
Root cause of repeated Namespace build failures: nscloud-cache-action
mounts each cache path as a volume at /Volumes/cache/<path>. When ios/Pods
is included, CocoaPods generates xcconfig and Hermes build scripts with
relative paths like ../../node_modules/ from ios/Pods/. These paths
resolve correctly only when ios/Pods and node_modules sit on the same
filesystem. With ios/Pods at /Volumes/cache/ios/Pods/ and node_modules in
the workspace, the Hermes script fails with:
/Volumes/cache/ios/Pods/../../node_modules/.../with-environment.sh:
No such file or directory
Fix:
- Drop ios/Pods from nscloud-cache-action paths (keep ~/.cocoapods only,
which is filesystem-safe — pod install reads downloads from there and
writes Pods into the workspace path).
- Move the cleanup step before Setup project dependencies so pod install
regenerates ios/Pods with workspace-relative paths.
- Also clear ios/Pods alongside DerivedData and ios/build, since the
Namespace profile's 70GB User Bundled Cache persists workspace state
(including stale Pods generated when ios/Pods was on /Volumes/cache).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 43b2f1f commit b049760
1 file changed
Lines changed: 23 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
134 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
135 | 157 | | |
136 | 158 | | |
137 | 159 | | |
| |||
204 | 226 | | |
205 | 227 | | |
206 | 228 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | 229 | | |
219 | 230 | | |
220 | 231 | | |
| |||
0 commit comments