From de00fd39aff3543a7716fd7c5d397c6b290050a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 16 Nov 2026 18:51:40 +0100 Subject: [PATCH] fix(apple-runner): keep the keyboard return tap iOS-only #4589 moved the return-control lookup into findKeyboardReturnControl and left tapKeyboardReturnControl calling XCUIElement.tap() on every platform. tap() is unavailable on tvOS, so the tvOS runner build in the release job failed. Restore the iOS guard the original function had. Co-Authored-By: Claude Opus 5.5 --- .../AgentDeviceRunnerUITests/RunnerTests+Keyboard.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Keyboard.swift b/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Keyboard.swift index 52725cb190..dd5a8ec53b 100644 --- a/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Keyboard.swift +++ b/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Keyboard.swift @@ -512,11 +512,15 @@ extension RunnerTests { } private func tapKeyboardReturnControl(app: XCUIApplication) -> Bool { +#if os(iOS) guard let control = findKeyboardReturnControl(app: app) else { return false } control.tap() return true +#else + return false +#endif } private func isKeyboardAccessoryControl(_ element: XCUIElement, keyboardFrame: CGRect) -> Bool {