From 57cbad7b97d3d7c4b3f25d6c02525c8e7bd08dc8 Mon Sep 17 00:00:00 2001 From: Alessandro Chiarotto Date: Mon, 21 Mar 2022 11:17:13 +0100 Subject: [PATCH] fix tvOS compile error (#64) --- XCode/Sources/UITests/XCTAssertion+.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/XCode/Sources/UITests/XCTAssertion+.swift b/XCode/Sources/UITests/XCTAssertion+.swift index 5491ccd..263d905 100644 --- a/XCode/Sources/UITests/XCTAssertion+.swift +++ b/XCode/Sources/UITests/XCTAssertion+.swift @@ -91,6 +91,7 @@ public extension XCUIElement { } } +#if !os(tvOS) // MARK: Gestures public func tap(_ element: XCUIElement, _ message: String = "", file: StaticString = #filePath, line: UInt = #line) { XCTAssertTrue(element.waitForExistence(timeout: expectationTimeout), "\(message) - \(element) does not exist.", file: file, line: line) @@ -101,6 +102,7 @@ public func doubleTap(_ element: XCUIElement, _ message: String = "", file: Stat XCTAssertTrue(element.waitForExistence(timeout: expectationTimeout), "\(message) - \(element) does not exist.", file: file, line: line) element.doubleTap() } +#endif #if canImport(UIKit) #if !os(tvOS)