Connection Error

Hi Team,

While executing script on mac for IOS device in between execution i am getting “Connection Error”, and then the execution is getting terminated. Please help me on this. Below are the software version .
Appium - 1.10.0
java client - 5.0.0 Beta-9
xcode - 10.1
IOS (Mac) - 10.13.6 (17G4015)
IOS (Device) - 12.0
Selenium - 3.4.0

I have the same error after updating to Appium 1.9.0 (Server 1.10.0). It appears only every other time the tests are executed and only on iOS devices. I found it helped to delete the app and WebDriverAgent from the device before starting tests.