Stage4View exceeds Swift 5.7 ViewBuilder 10-child limit (run 31958) #111

Closed
opened 2026-09-12 08:51:52 +01:00 by gronod · 0 comments
Owner

Run 31958 (job 33203) failed at Build for testing (universal) on the macos-12 runner (Xcode 14.2 / Swift 5.7):

Sources/ICCery/Stage4View.swift:144:13: error: extra argument in call
    if model.applyCalibration {

The VStack in formSection (Stage4View.swift:69) has 11 direct children. Swift 5.7's ViewBuilder only provides buildBlock overloads up to 10 arguments; the 11th child produces the misleading "extra argument in call" error. Newer toolchains use variadic buildBlock, so it compiles on newer Xcode but not on the macOS 12 runner.

Fix: wrap the Toggle + conditional calibration-file row in a nested VStack(alignment: .leading, spacing: 12) — identical layout, 10 children in the parent.

Run 31958 (job 33203) failed at `Build for testing (universal)` on the macos-12 runner (Xcode 14.2 / Swift 5.7): ``` Sources/ICCery/Stage4View.swift:144:13: error: extra argument in call if model.applyCalibration { ``` The `VStack` in `formSection` (Stage4View.swift:69) has 11 direct children. Swift 5.7's `ViewBuilder` only provides `buildBlock` overloads up to 10 arguments; the 11th child produces the misleading "extra argument in call" error. Newer toolchains use variadic `buildBlock`, so it compiles on newer Xcode but not on the macOS 12 runner. Fix: wrap the `Toggle` + conditional calibration-file row in a nested `VStack(alignment: .leading, spacing: 12)` — identical layout, 10 children in the parent.
gronod added the
Priority
High
2
Project/ICCery-v2Bug/UI
labels 2026-09-12 08:51:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/iccery-v2-mac#111