title: Not able to launch iOS application using Appium Desktop to inspect the element
body: <p>Test Environment: iOS 11, OSX 10.12, Appium Desktop 1.2.5, Xcode 8.1</p>
  
  <p><strong>Desired Capabilities :</strong> </p>
  
  <pre><code>{
    "platformName": "iOS",
    "deviceName": "iPhone 7",
    "udid": "93551a7d721b790b0188642402f1ada96892b816",
    "app": "/Users/globalit/Desktop/IntegrationApp.app",
    "automationName": "XCUITest"
  }
  </code></pre>
  
  <p>I am able to launch integration app in the device using xcode.
  also successfully deployed web-driver agent in my device. </p>
  
  <p>But i am getting following error when i tried to launch my ios application via appium desktop.</p>
  
  <p><strong>Error:</strong></p>
  
  <p>An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: "Could not proxy command to remote server. Original error: Error: socket hang up". Make sure you follow the tutorial at <a href="https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md" rel="nofollow noreferrer">https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md</a>. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.</p>
  
  <p><strong>Appium Logs:</strong></p>
  
  <pre><code>XCUITest] Failed to create WDA session. Retrying...
  [BaseDriver] Event 'wdaSessionAttempted' logged at 1509096179356 (14:52:59 GMT+0530 (IST))
  [XCUITest] Sending createSession command to WDA
  [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
  [XCUITest] Failed to create WDA session. Retrying...
  [XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: "Could not proxy command to remote server. Original error: Error: socket hang up". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
  [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
  [XCUITest] Shutting down sub-processes
  [XCUITest] Shutting down iproxy process (pid 576)
  [XCUITest] iproxy exited with code 'null'
  [XCUITest] Shutting down xcodebuild process (pid 577)
  [XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM'
  [XCUITest] Removing WDA application from device
  [XCUITest] Error: Unable to start WebDriverAgent session because of xcodebuild failure: "Could not proxy command to remote server. Original error: Error: socket hang up". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
      at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)
      at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
      at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
      at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
      at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
   Error: Unable to start WebDriverAgent session because of xcodebuild failure: "Could not proxy command to remote server. Original error: Error: socket hang up". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
      at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)
      at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
      at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
      at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
      at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
  [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
  [iOSLog] Stopping iOS log capture
  [MJSONWP] Encountered internal error running command: Error: Unable to start WebDriverAgent session because of xcodebuild failure: "Could not proxy command to remote server. Original error: Error: socket hang up". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
      at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)
      at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
      at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
      at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
      at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
  [HTTP] &lt;-- POST /wd/hub/session 500 118446 ms - 526 
  </code></pre>