Commit d43a061
committed
fix: clean stale native asset state before iOS/macOS CI builds
The .dart_tool directory is cached by pubspec.lock hash, but it
contains native asset build metadata (NativeAssetsManifest.json)
that references compiled .dylibs in build/native_assets/ which
is not cached. When a cache hit restores stale .dart_tool state,
xcode_backend.dart fails trying to copy the missing objective_c
native asset. Clearing flutter_build and native_assets before
building forces a fresh native asset compilation.1 parent 05fe821 commit d43a061
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
239 | 244 | | |
240 | 245 | | |
241 | 246 | | |
| |||
315 | 320 | | |
316 | 321 | | |
317 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
318 | 328 | | |
319 | 329 | | |
320 | 330 | | |
| |||
0 commit comments