Skip to content

Fix flaky Build iOS: drop the .dart_tool cache from the iOS build job#27

Merged
windoze95 merged 1 commit into
mainfrom
fix/ios-build-pub-cache
Jun 11, 2026
Merged

Fix flaky Build iOS: drop the .dart_tool cache from the iOS build job#27
windoze95 merged 1 commit into
mainfrom
fix/ios-build-pub-cache

Conversation

@windoze95

Copy link
Copy Markdown
Owner

Build iOS started failing intermittently with:

Exception: The native assets specification ... references objective_c, which was not found in build/native_assets/ios/

The pattern (4 runs today): every cold-cache build passed, every warm-cache build failed — same commit, same image, same dependency resolution. The cached .dart_tool carries native-assets build fingerprints, so on restore Flutter thinks objective_c's native library is already built and skips it.

Removes the pub/.dart_tool cache step from the Build iOS job only (~1 min slower, deterministic). Analyze/Test keep their caches — they don't run native builds and pass warm. Also deleted the currently-poisoned cache entries so in-flight PRs can rerun clean.

🤖 Generated with Claude Code

A restored .dart_tool carries stale native-assets build fingerprints,
making `flutter build ios` skip building FFI packages (objective_c) and
fail with "native assets specification references objective_c, which
was not found in build/native_assets/ios". Reproduced today: every
cold-cache iOS build passed, every warm-cache one failed. Analyze/Test
keep their pub cache (no native build, pass warm).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@windoze95 windoze95 merged commit 766508c into main Jun 11, 2026
6 checks passed
@windoze95 windoze95 deleted the fix/ios-build-pub-cache branch June 11, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant