Issues with IOS device

I’m running the node.js agent on a Mac and connecting to an iOS device. Now I have two issues. Please find the attachment for detailed log if necessary. Can you please help?

  1. When “capture video” is enabled, I got the error message like below.

D Apr_18_17:58:48.569 wd_server.js:211 WebDriverServer.<anonymous> : Error: '/Users/builder/wpt/agent/js/lib/ios/idevice/Darwin x86_64/idevicescreenshot' -u 5f6225fb0141d44ac1bded92cb6b30c0f5fe9055 failed, code 255, stdout[53] ERROR: Could not connect to lockdownd, error code -8
[attachment=587]

  1. When “capture video” is disabled, the test can complete. But I got the message below on the server.

[attachment=586]

For this case, sometimes I can see the message on the console as the attached file “Network.loadingFailed.png”. Sometimes, there’s no error message at all and everything looks fine but no results returned.
[attachment=588]