question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[XCUITest] Unable to start WebDriverAgent: Error: spawn EACCES

See original GitHub issue

iOS 10.0.2 xcode 8 appium 1.6.0-beta3 appium-xcuitest-driver 2.0.26

Seeing same issue in Issue #191 on a real device, simulator is ok.

[XCUITest] Waiting for WebDriverAgent to start on device
[XCUITest] Unable to start WebDriverAgent: Error: spawn EACCES
[XCUITest] Unable to start WebDriverAgent: Error: spawn EACCES
[debug] [XCUITest] Reset not set, continuing
[debug] [iOSLog] Stopping iOS log capture

This happens when I use deviceconsole, without it I see the hang from Issue #6895

On the device itself, I see wda installed on the phone and start/background within a few seconds (up to 10 sometimes) after the error.

I’m able to run the xcodebuild command outside of appium and arrive at Listening on USB

Looking for insights on how to further troubleshoot this, if there’s any additional info you’d like me to submit let me know - thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, Oct 11, 2016

Sorry, just saw that you were using deviceconsole.

Figured it out!

I think you are pointing realDeviceLogger to the directory, rather than the executable. For instance, I have deviceConsole installed in

/Users/isaac/.nvm/versions/node/v4.4.7/lib/node_modules/deviceconsole

So the actual executable, which is what realDeviceLogger should be pointing to, is

/Users/isaac/.nvm/versions/node/v4.4.7/lib/node_modules/deviceconsole/deviceconsole
0reactions
michalakmcommented, Nov 15, 2016

@seanchandler Thanks for the issue. I made the same mistake.

Read more comments on GitHub >

github_iconTop Results From Across the Web

XCUITest 1.6 Bad Parameters error/ spawn EACCES error
[XCUITest] Waiting for WebDriverAgent to start on device [XCUITest] Unable to start WebDriverAgent: Error: spawn EACCES [XCUITest] Unable to ...
Read more >
spawn EACCES' error while trying to run protractor tests from ...
angular - 'E/launcher - Error: spawn EACCES' error while trying to run protractor tests from Jenkins(Unix machine) - Stack Overflow. Stack ...
Read more >
Appium error [resolved] - Unable to launch WebDriverAgent ...
The above error is due to WebDriverAgent is not installed on your real device or simulator connected to run the appium tests. The...
Read more >
How to fix this Error: spawn EACCES - Edward Beazer Blog
This error comes up when you don't have full permissions to the project folder. You want to run the chmod command in order...
Read more >
MAC Appium iOS自动化测试之环境搭建_一燊芊芊的博客-CSDN博客
1、打开WebDriverAgent ... /Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent ... open WebDriverAgent.xcodeproj.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found