I am running an Xcode test command in the terminal. Here is the command
xcodebuild test -project $project_dir/Application.xcodeproj -scheme Application -sdk iphoneos -destination id=$UDID >> $LOGFILE_PATH
But my test case has failed with the error "Failed to install or launch the test runner. (Underlying error: Xcode encountered an error. Could not connect to the device)"
Attached is the screenshot for error log.Screenshot for error log