question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Appium fails to install WDA on apple tv 4k.

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Appium session fails on apple tv 4k due to WDA installation failure.

Error - [debug] [AppiumDriver@4d47] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70

Failed due to [debug] [AppiumDriver@4d47] xcodebuild: error: Unable to find a destination matching the provided destination specifier: [debug] [AppiumDriver@4d47] { id:630248c017358eb7f998a44157cf91d9be116eeb }

But in available devices we can see that the device is available. [debug] [AppiumDriver@4d47] Available destinations for the "WebDriverAgentRunner_tvOS" scheme: [debug] [AppiumDriver@4d47] { platform:tvOS, id:dvtdevice-DVTiOSDevicePlaceholder-appletvos:placeholder, name:Any tvOS Device } [debug] [AppiumDriver@4d47] { platform:tvOS, id:630248c017358eb7f998a44157cf91d9be116eeb, name:Living Room } [debug] [AppiumDriver@4d47] { platform:tvOS Simulator, id:82049AD9-58D6-4FA0-ABD1-18BD32C93A6A, OS:16.0, name:Apple TV 4K (2nd generation) }

Expected Behavior

Appium should be able to install wda on apple tv 4k.

Minimal Reproducible Example

Start appium session with the following caps - desired_cap = { “automationName”: “XCUITest”, “platformName”: “tvOS”, “platformVersion”: “16.0”, “deviceName”: “[device name]”, “appium:bundleId”: “[bundle id]”, “udid”:“[udid]”, “appium:useNewWDA”: True, “showXcodeLog”: True }

Environment

  • Appium Version: v2.0.0-beta.35
  • xcuitest driver: xcuitest@4.12.2
  • Device: Apple Tv 4k 2nd gen 16.0
  • Real device or emulator/simulator: Real device

Link to Appium Logs

https://gist.github.com/rushi04/1701e8d0ae3ca0f9637a1bc0aa19cd0a

Futher Information

No response

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rushi04commented, Dec 8, 2022

@mykola-mokhnach replacing IPHONEOS_DEPLOYMENT_TARGET with TVOS_DEPLOYMENT_TARGET worked. 🚀🔥 Thanks a ton.

Can we make appium do the same while building wda for tvos ?

1reaction
mykola-mokhnachcommented, Dec 8, 2022

xcuitest driver patch v4.13.3 has been published

Read more comments on GitHub >

github_iconTop Results From Across the Web

ld: cannot link directly with dyli… | Apple Developer Forums
I have been trying to install WebdriverAgent on Apple TV. After pressing "Start the active scheme" button, the following error has occurred:.
Read more >
Unable to launch WebDriverAgent because of xcodebuild failure
I am able to launch my apps manually, but not working when i'm executing via Appium inspector as well as appium script. Getting...
Read more >
tvOS | Apple Developer Forums
I am developing tv app. I use native searchbar. But spaces is occuring at left and right of screen. Views looks cut off....
Read more >
Cannot run xcodebuild for Apple TV 4K
I am trying to run xcodebuild commands to build my WDA app for testing on the device. When I run the xcrun xctrace...
Read more >
ld: cannot link directly with dyli… | Apple Developer Forums
What should i do so this error disappear? laptop - MacBook Pro 2021 with Apple M1 Pro chip. Xcode - Version 14.0 beta...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found