Has anyone experienced and fixed:
XCTests are 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.
OSX: 10.12.3 iOS simulator: 10.0 Xcode 8.2.1 Fastlane 2.11.0
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...
UI Testing Failure - Failure attempting to launch <XCUIApplicationImpl: 0x600000231b20 no.something.bb.debug at /Users/server/Library/Developer/Xcode/DerivedData/ex-gmtcdujyggxwfrarizpgaromjfxj/Build/Products/Debug-iphonesimulator/BB.app>: 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.}}}