title: Unable to run app in simulator
body: <p>Today, when I try to run my app in simulator, it simply tells me</p>
  <pre><code>Unable to run app in Simulator
  An error was encountered while running
  (Domain = NSPOSIXErrorDomain, Code = 22)
  </code></pre>
  <p>And the error dialog looks like this:</p>
  <p><img src="https://i.stack.imgur.com/1veqL.png" alt="Unable to run app in Simulator" /></p>
  <p>I've tried many things:</p>
  <ul>
  <li>Restart Xcode</li>
  <li>Restart Simulator</li>
  <li>Reboot</li>
  <li>Reset content and settings of simulator</li>
  </ul>
  <p>None of above works. And I looked into log, I found these are those records has something to do with this issue</p>
  <blockquote>
  <p>2014/10/15 9:09:40.964 com.apple.CoreSimulator.CoreSimulatorService[979]: Error Domain=com.apple.CoreSimulator.SimError Code=146 &quot;Unable to lookup in current state: Shutdown&quot; UserInfo=0x7f96c861d000 {NSLocalizedDescription=Unable to lookup in current state: Shutdown}</p>
  <p>2014/10/15 9:09:40.964 Xcode[1983]: [MT] iPhoneSimulator: Unable to connect to &quot;com.apple.instruments.deviceservice.lockdown&quot; (Error Domain=com.apple.CoreSimulator.SimError Code=146 &quot;Unable to lookup in current state: Shutdown&quot; UserInfo=0x7fcf6fc24190 {NSLocalizedDescription=Unable to lookup in current state: Shutdown})</p>
  <p>2014/10/15 9:09:40.980 com.apple.CoreSimulator.CoreSimulatorService[979]: Error Domain=com.apple.CoreSimulator.SimError Code=146 &quot;Unable to lookup in current state: Shutdown&quot; UserInfo=0x7f96c861d000 {NSLocalizedDescription=Unable to lookup in current state: Shutdown}</p>
  <p>2014/10/15 9:09:42.351 launchd_sim[2047]: assertion failed: 13F34: libxpc.dylib + 29453 [75E30F22-514B-3A20-B82C-EDA43AF5C35C]: 0x8d</p>
  <p>2014/10/15 9:09:42.362 com.apple.CoreSimulator.CoreSimulatorService[979]: Could not register service com.apple.coreservices.lsuseractivity.simulatorsupport: Failed to lookup com.apple.coreservices.lsuseractivity.simulatorsupport: 0x44e</p>
  </blockquote>
  <p>I also found some other people had the same issue here : <a href="https://gist.github.com/bdeshong/2dd90add09b7287a9a85" rel="noreferrer">https://gist.github.com/bdeshong/2dd90add09b7287a9a85</a></p>
  <p>No luck to find solution after Googling around.</p>
  <p>Here is my environment information</p>
  <ul>
  <li>OSX 10.9.5</li>
  <li>Xcode 6.0.1</li>
  <li>iOS Simulator 8.0 (550.1)</li>
  </ul>
  <p>Any ideas?</p>