fix(apple-runner): keep the keyboard return tap iOS-only

Merged
TH
1h ago
+4-0

The v0.21.38 release build failed (run 43918681966, Build job): RunnerTests+Keyboard.swift:518: error: tap() is unavailable in tvOS.

#4589 moved the return-control lookup into findKeyboardReturnControl and left tapKeyboardReturnControl calling XCUIElement.tap() on every platform. The original function wrapped that tap in #if os(iOS); this restores the guard. Main CI does not build the tvOS runner, so only the release job caught it.

Validation: local build-for-testing for tvOS and visionOS simulators both report TEST BUILD SUCCEEDED with this change.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.