title: Xcode 9, iOS 11, XCUITest failure: Main Thread Checker Flurry Analytics
body: <p>Running my suite of XCUITests using Xcode 9 running on iOS 11.</p>
  
  <p>Tests all run perfect in Xcode 8 (iOS10), but in Xcode 9 I get the following error:</p>
  
  <pre><code>Main Thread Checker: UI API called on background thread [UIApplication statusBarOrientation]... 
  ... Queue name: com.Flurry.Analytics.Session
  </code></pre>
  
  <p>This can be fixed by commenting out all the Flurry code, but that is obviously not ideal.  This issue has been seen by devs previously:
  <a href="https://github.com/flurry/flurry-ios-sdk/issues/91" rel="nofollow noreferrer">https://github.com/flurry/flurry-ios-sdk/issues/91</a></p>
  
  <p>However, in this case, the dev build compiles all correctly and this error only occurs when XCUITests are run.</p>
  
  <p>Anyone know how to fix this?</p>