title: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file
body: <p>I have installed Appium 1.6.4 on Mac using Terminal. Also I can able to inspect iPhone WebElements using Safari Browser in MAC.</p>
  
  <p>But I need to inspect the keyboard elements and date picker elements on iPhone real device. For this, I have again installed Appium-desktop 1.0.2 beta2 version. When I launch the Appium desktop(GUI) and run the selenium code. It throws the below error.</p>
  
  <pre><code>XCUITest] Log file for xcodebuild test: /Users/msubramaniam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/D3F3B94A-A324-4996-B60F-0732CEBFB00D/Session-WebDriverAgentRunner-2017-05-30_125049-1uf7KZ.log
  [Xcode] 2017-05-30 12:50:49.364 xcodebuild[87735:236610] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/msubramaniam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fb4306026c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
  [Xcode] 2017-05-30 12:50:49.364 xcodebuild[87735:236610] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
  [Xcode] 
  [Xcode] ** TEST EXECUTE FAILED **
  [Xcode] 
  [Xcode] 
  [XCUITest] xcodebuild exited with code '65' and signal 'null'
  [BaseDriver] Event 'wdaStartFailed' logged at 1496128849419 (12:50:49 GMT+0530 (IST))
  [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
  [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
  [XCUITest] Shutting down sub-processes
  [XCUITest] Shutting down iproxy process (pid 87701)
  [XCUITest] iproxy exited with code 'null'
  [XCUITest] Removing WDA application from device
  [BaseDriver] Event 'wdaStartAttempted' logged at 1496128859998 (12:50:59 GMT+0530 (IST))
  </code></pre>
  
  <p>As per the above log, I have navigated to the below location, </p>
  
  <pre><code>/Users/msubramaniam/Library/Developer/Xcode/DerivedData
  </code></pre>
  
  <p>I found that there are two WebDriverAgents </p>
  
  <pre><code>WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy
  WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs
  </code></pre>
  
  <p>It is calling the second WebDriverAgent and it does not have the "WebDriverAgentRunner-Runner.app".</p>
  
  <p>First WebDriverAgent has "WebDriverAgentRunner-Runner.app".</p>
  
  <p>So how to call the first WebDriverAgent.</p>
  
  <p>I have also tried to remove the WebDriverAgent by using the below command.</p>
  
  <pre><code>rm -rf /WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs
  </code></pre>
  
  <p>But it is not deleted.</p>
  
  <p>Kindly provide the solution for this to resolve.</p>