in xcode project, the deployment target for TVOS is set to AppleTV and version as 15.3. I am not sure why its fetching as IPHONEOS.
Also i tried to change it to TVOS_DEPLOYMENT_TARGET through command line.
xcodebuild build-for-testing test-without-building -project /opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner_tvOS -derivedDataPath /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-fxmsedpwfaalxlbcwefbceeuodem -destination id=e833be5a2126fa8cd6d853f3592ec4aff78ca07a TVOS_DEPLOYMENT_TARGET=15.3 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO…
But it returned with the original error:-
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ id:e833be5a2126fa8cd6d853f3592ec4aff78ca07a }
The requested device could not be found because no available devices matched the request.
Available destinations for the "WebDriverAgentRunner_tvOS" scheme:
{ platform:tvOS, id:e833be5a2126fa8cd6d853f3592ec4aff78ca07a, name:Bedroom }
{ platform:tvOS Simulator, id:A94F219F-18D6-4B16-A3BD-0B0237628FED, OS:15.4, name:Apple TV }
{ platform:tvOS Simulator, id:553FA7FF-8446-4016-B02D-81F9E650EEFC, OS:15.4, name:Apple TV }
{ platform:tvOS Simulator, id:EC6861CE-8EDC-4BB0-87CE-96F37C8243FC, OS:15.4, name:Apple TV 4K (2nd generation) }
{ platform:tvOS Simulator, id:AC569E17-71D0-42B8-A33E-EF04592E8A4D, OS:15.4, name:Apple TV 4K (at 1080p) (2nd generation) }
Ineligible 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 }