We recently upgraded from Xcode 8 to 10. After -finally- getting everything to compile again, I'm having an issue in our unit tests that involve orientation changes. What I had been doing to simulate device orientation changes was
XCUIDevice.shared().orientation = .landscapeLeft
...
XCUIDevice.shared().orientation = .faceUp
...
etc.
Now when this line is executed, the "device" (simulator of iPhone 8+) is making the appropriate orientation change, but the call ultimately fails due to a timeout on the confirmation:
[iMomTests.DataScreenTests testLandscape] : Failed to set orientation: Error Domain=XCTDaemonErrorDomain Code=15 "Timed out waiting for confirmation of orientation change." UserInfo={NSLocalizedDescription=Timed out waiting for confirmation of orientation change.}