xcodebuild test-without-building fails for Apple TV 4K

Hey,

I paired an Apple TV 4K with my Mac Pro. From Xcode, I tried running the test directly on the device, the test executes. When I try to trigger the same test through command line, it fails with xcodebuild: error: Unable to find a destination matching the provided destination specifier

The test works fine for an Apple TV and only fails for Apple TV 4K. I have added the command and complete output in the file attached below

Here are a few additional questions apart from the test not running through command line

  1. What is "Transient Testing Scheme", and how can this be refreshed or deleted? Basically, it shows many other devices as well which are connected to Xcode currently but were connected in the past.
  2. Why is this happening only for Apple TV 4K?
  3. When I execute the test through GUI, it passes. Is there a way to know which command X code is running behind the scenes?
xcodebuild test-without-building fails for Apple TV 4K
 
 
Q