ECLIPSE : Java : Unable to start XCUITest "Error: Command 'idevice_id -l' errored out: Error: spawn idevice_id ENOENT".Please help!

Hi Sireesha,
I followed all the above mentioned and it is working properly in happy flow.
But it case the program was stopped in middle or an exception occurred, then the next time onwards there are multiple issue coming through.
The ‘port is in use’ issue has been resolved by the command 'lsof -P | grep ‘:8100’ | awk ‘{print $2}’ | xargs kill -9
'.

But the other prevailing issue is,‘WebDriverAgent’ app in the physical device opens and hangs there. It never goes to background and opens my app. I even tried uninstalling WebDriverAgent still no use.I need to restart the device in order to resolve this issue.

Any solution for this??

I think below is the corresponding log.
“[debug] [WebDriverAgent] Device: Dec 14 12:07:05 Rafis-iPad XCTRunner[211] : Enqueue Failure: UI Testing Failure - Unable to update application state promptly. 0 1”

@SireeshaSimakurthy I am trying to run the scripts programmatically and I am getting below error every time: Finding XcodePath by symlink because Error: Command ‘xcode-select’ not found. Is it installed? I have cross checked and xcode is installed. Can you please help me?

@Keshav_Kumar1, Please share the appium logs

It is solved. Thanks for your concern.

Hi Sireesha,
Can you please give me generalized path as i suppose path mentioned by you is specific to your machine. also i want to clarify that i am getting this error for iOS simulator.

Thanks in advanced
Abhishek