Skip to content

Commit 6f6895a

Browse files
committed
fix(runner): place synthesized-context #if at line start
`synthesizedCoordinateContext` opened its body with `{#if os(iOS)`, so the conditional-compilation scanner used by check:xctest-selection skipped the inline `#if` yet still saw the `#else`, reporting "#else without a matching #if". swiftc -parse and the runner test build already accepted the inline form; moving `{` and `#if os(iOS)` onto separate lines keeps the directive at line start, matching every other guard in the file, and unblocks the gate. Refs #2724
1 parent afbb6cc commit 6f6895a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedInteraction.swift‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ extension RunnerTests {
377377
func synthesizedCoordinateContext(
378378
app: XCUIApplication,
379379
policy: SynthesizedGesturePolicy
380-
) -> SynthesizedCoordinateContext? {#if os(iOS)
380+
) -> SynthesizedCoordinateContext? {
381+
#if os(iOS)
381382
let health = runnerAccessibilityHealth
382383
let referenceFrame = onScreenWindowFrame(app: app)
383384
guard referenceFrame.width.isFinite, referenceFrame.height.isFinite,

0 commit comments

Comments
 (0)