I am describing my problem in below steps.
1. WebDriverAgent is installing on my simulator. In appium logs I am getting-WebDriverAgent running on ip '192.168.xx.xx'.
XCUITest] WebDriverAgent successfully started after 30066ms
2. Now XCUITEST is sending creatSession command WDA.
3. WebDriverAgent is installed in my simulator.
4. .ipa application is also installed after running.
5. Now On simulator WebdriverAgent is launching for a while then again goes back on home screen.
6. Now my .ipa application is launching for a while and its also goes back on home screen.
7. In the appium logs we are getting "Failed to launch application."
I have tried many ways to overcome this problem but after so hard work we still stuck on the same issue. Please also refer the screenshot of appium logs.