Unable to Communicate with automation agent running on device.

When I am initializing automation on Eggplant Gateway in IOS, after processing it is stopping and giving me the following error:

| ERROR | iOS Device | Could not start automation on device SQS’s iPhone6: Unable to communicate with Automation Agent running on the device. Please check your DEBUG-level xcodebuild logs for more detailed information.

I updated IOS Gateway and the issue was resolved.