Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code '70' for Apple TVOS 15.3

Hello,

I am facing an issue with my AppleTV - TVOS 15.3 test automation set up and configuration. I am able to launch my apps manually, but not working when i'm executing via Appium inspector as well as appium script. Getting error as xcode build failure 70.

The proper set up has been followed for the configuration, but missing something. Xcode 13.3, Mac Os- 12.5, Appium 1.22.3 . Installed all the necessary packages required for the set up as well. Able to build the xcode project successfully.

From the showXcode logs i can see the device is not getting identified.


xcodebuild: error: Unable to find a destination matching the provided destination specifier:
[W3C] 		{ id:e833be5a2126fa8cd6d853f3592ec4aff78ca07a }
[W3C] 	The requested device could not be found because no available devices matched the request.
[W3C] 	Available destinations for the "WebDriverAgentRunner_tvOS" scheme:
[W3C] 		{ platform:tvOS, id:e833be5a2126fa8cd6d853f3592ec4aff78ca07a, name:Bedroom }
[W3C] 		{ platform:tvOS Simulator, id:A94F219F-18D6-4B16-A3BD-0B0237628FED, OS:15.4, name:Apple TV }
[W3C] 		{ platform:tvOS Simulator, id:EC6861CE-8EDC-4BB0-87CE-96F37C8243FC, OS:15.4, name:Apple TV 4K (2nd generation) }
[W3C] 		{ platform:tvOS Simulator, id:AC569E17-71D0-42B8-A33E-EF04592E8A4D, OS:15.4, name:Apple TV 4K (at 1080p) (2nd generation) }
[W3C] 	Ineligible destinations for the "WebDriverAgentRunner_tvOS" scheme:
[W3C] 		{ platform:tvOS, id:dvtdevice-DVTiOSDevicePlaceholder-appletvos:placeholder, name:Any tvOS Device }
[W3C] 		{ platform:tvOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-appletvsimulator:placeholder, name:Any tvOS Simulator Device }. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
[W3C]     at quitAndUninstall (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:585:15)
[W3C]     at /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:620:11`

Currently blocked in this state and welcoming suggestions/help would be much appreciated.

Thanks in Advance

Post not yet marked as solved Up vote post of Sarathpm Down vote post of Sarathpm
2.0k views

Replies

Tried on a different device of TVOS 16 with xcode 14. Getting the same error again.

xcodebuild build-for-testing test-without-building -project /Users/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner_tvOS -destination 'platform=tvOS,name=Guest Room,id=ef32baec9b99641125c9edc92c4cd453c9bc382c' -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO Command line invocation:   /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner_tvOS -destination "platform=tvOS,name=Guest Room,id=ef32baec9b99641125c9edc92c4cd453c9bc382c" -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NOUser defaults from command line:   IDEPackageSupportUseBuiltinSCM = YESBuild settings from command line:   COMPILER_INDEX_STORE_ENABLE = NO   GCC_TREAT_WARNINGS_AS_ERRORS = 0   IPHONEOS_DEPLOYMENT_TARGET = 16.02022-10-11 16:07:08.614 xcodebuild[27191:763506] Writing error result bundle to /var/folders/35/wwcf57rj6_70w6b7df4ktrwh0000gq/T/ResultBundle_2022-11-10_16-07-0008.xcresult

xcodebuild: error: Unable to find a destination matching the provided destination specifier: ` { platform:tvOS, id:ef32baec9b99641125c9edc92c4cd453c9bc382c, name:Guest Room } The requested device could not be found because no available devices matched the request.

Available destinations for the "WebDriverAgentRunner_tvOS" scheme: { platform:tvOS, id:dvtdevice-DVTiOSDevicePlaceholder-appletvos:placeholder, name:Any tvOS Device } { platform:tvOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-appletvsimulator:placeholder, name:Any tvOS Simulator Device } ** { platform:tvOS, id:ef32baec9b99641125c9edc92c4cd453c9bc382c, name:Guest Room }** { platform:tvOS Simulator, id:19318C65-AE79-4CBD-9675-22915D49E753, OS:16.0, name:Apple TV } { platform:tvOS Simulator, id:FE35A452-7359-434D-B3C6-F813B1C340EE, OS:16.0, name:Apple TV 4K (2nd generation) } { platform:tvOS Simulator, id:2D6D7F37-4BA9-4782-A759-04D24F6E1FEA, OS:16.0, name:Apple TV 4K (at 1080p) (2nd generation) }`