XCTests failing to launch app in simulator intermittently : <p>Has anyone experienced and fixed:</p>

<p>XCtests failing intermittently to launch app in the simulator for UI testing (XCUI).
I am running through fastlane, different tests appear to fail each test run.</p>

<p>OSX: 10.12.3
iOS simulator: 10.0
XCode 8.2.1
Fastlane 2.11.0</p>

<p>Attempted to fix it by adding a 3 second sleep between setup and launch in my tests, but it still appears, maybe not as often but still...</p>

<blockquote>
  <p>UI Testing Failure - Failure attempting to launch
  :
  Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request
  to open "no.something.bb.debug" failed."
  UserInfo={NSLocalizedDescription=The request to open
  "no.something.bb.debug" failed., NSLocalizedFailureReason=The request
  was denied by service delegate (SBMainWorkspace) for reason: Busy
  ("Application "no.something.bb.debug" is installing or uninstalling,
  and cannot be launched")., BSErrorCodeDescription=RequestDenied,
  NSUnderlyingError=0x6080002598f0 {Error
  Domain=FBSOpenApplicationErrorDomain Code=6 "Application
  "no.something.bb.debug" is installing or uninstalling, and cannot be
  launched." UserInfo={BSErrorCodeDescription=Busy,
  NSLocalizedFailureReason=Application "no.something.bb.debug" is
  installing or uninstalling, and cannot be launched.}}}</p>
</blockquote>
