Repository navigation
fix(ios): unblock the Ray-Ban DAT build and keep its project file clean - #22596
Conversation
RunnerRayBanDat ran the Flutter "Thin Binary" script before "Embed Frameworks". Once OnDeviceParakeet.framework is embedded in that target, Xcode reports "Cycle inside RunnerRayBanDat": the framework copy into Runner.app/Frameworks depends on Thin Binary, which depends on the processed Info.plist, which depends on that copy. Use the order the Runner target already uses (Embed Frameworks, then Thin Binary). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both CocoaPods installs in scripts/rayban_dat.sh rewrite the tracked Runner.xcodeproj/project.pbxproj, and the default reinstall does not put it back byte-for-byte, so every DAT build left a modified project that was easy to commit by accident. Snapshot it with the other generated files before the DAT install and restore it after the default graph is reinstalled. Also pin the Embed Frameworks / Thin Binary order for both iPhone targets in rayban_dat_xcode_graph_test.rb. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Auto-fix isn't included in your plan ↗ |
|
Verdict: the production fix here is correct and tightly scoped, with good contract-test coverage; the two failing checks are analyzer drift from main, not from this diff. No blocking issues from my side. Per file:
On the failing checks: "Dart Analyze & Tests" tripped the ratchet on one unused_import in app/test/widgets/home_ask_anything_button_test.dart. That import came in on main (6bd179b) and was fixed on main minutes later (8b65fde, "drop unused ui.dart import that fails the analyzer ratchet on main"); this branch's merge base predates the fix and the branch itself touches no Dart files, so the failure is main's, not yours. "Mobile Release Eligibility" fails only because it gates on Dart Analyze. iOS Compile Check, CodeQL, and Hygiene all pass on this head. Blast radius: only the Ray-Ban DAT build flavor; the default Runner build is unchanged (its phases already used the safe order). USER IMPACT: none — internal change; the Ray-Ban DAT developer/simulator build stops failing with the Xcode cycle error and no longer leaves ~100 dirty lines in project.pbxproj after each build. What I'd still want before merge: rebase onto current main (or let the merge ref refresh and re-run) so Dart Analyze & Tests and Mobile Release Eligibility go green — they should, since main already carries the import fix. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
…before-thin-binary
|
Pushed 4d65dc3: merged current main (8edd56d). No code changes.
|
kodjima33
left a comment
There was a problem hiding this comment.
Scoped iOS build-tooling fix (65 lines) for the Ray-Ban DAT Xcode phase-ordering cycle, with a new graph-order test; 5/5 confidence, CI green.
What changed and why
The Ray-Ban DAT simulator build fails on current main (1e1879f):
RunnerRayBanDat ran Flutter's
Thin Binaryscript beforeEmbed Frameworks. Once the target embedsOnDeviceParakeet.framework, the framework copy depends on Thin Binary, which depends on the processed Info.plist, which depends on the copy. The default Runner target already embeds before Thin Binary and builds fine.project.pbxproj: RunnerRayBanDat now runs Embed Frameworks before Thin Binary, matching Runner. Only the order of two existing phases changes.rayban_dat_xcode_graph_test.rb: asserts that order for both iPhone targets.scripts/rayban_dat.sh: both CocoaPods installs rewrite the trackedRunner.xcodeproj/project.pbxproj, and the default reinstall does not restore it byte-for-byte. Every DAT build therefore left about 100 changed lines in the project, which is easy to commit by accident. The wrapper now snapshots the project with the other generated files and restores it after the default graph is reinstalled.Found while verifying #22059's iPhone flavors. That PR's RunnerRayBanDat phases are identical to main's.
Validation
bash app/scripts/rayban_dat.sh build ios --simulator --debug -d <iPhone 16 Pro sim>fails with the cycle above, andgit statusafterwards showsM app/ios/Runner.xcodeproj/project.pbxproj.✓ Built build/ios/iphonesimulator/Runner.app,rayban-dat: default build graph restored, andgit status --shortis empty.ruby app/ios/test/rayban_dat_xcode_graph_test.rb: 10 runs, 0 failures. Against main's project.pbxproj the new test fails withRunnerRayBanDat must embed frameworks before Thin Binary: [... "Thin Binary", "Embed Frameworks"].ruby app/ios/test/rayban_dat_build_wrapper_test.rb: 12 runs, 136 assertions, 0 failures. Against main's wrapper, 7 failures (every restore path leaves the pod-rewritten project behind).ruby app/ios/test/rayban_dat_plugin_boundary_test.rb: 9 runs, 0 failures.plutil -lintOK;git diff --checkclean;scripts/pr-preflight --pr-body-file: 24 checks passed.Not covered: a signed device or archive build of the DAT flavor, and Ray-Ban glasses hardware.
Product invariants affected
none
Failure class (fixes)
Failure-Class: new
🤖 Generated with Claude Code