1

I need help in resolving these warnings after I migrated to Xcode 11. The warnings are as follows:

Unsupported use of UIKit API off the main thread: UIAccessibilityIsGuidedAccessEnabled() Unsupported use of UIKit API off the main thread: UIAccessibilityIsAssistiveTouchRunning() Unsupported use of UIKit API off the main thread: UIAccessibilityIsGuidedAccessEnabled() Unsupported use of UIKit API off the main thread: UIAccessibilityIsAssistiveTouchRunning() Unsupported use of UIKit API off the main thread: UIAccessibilityIsGuidedAccessEnabled()

Mukyuu
  • 6,436
  • 8
  • 40
  • 59
  • If you are using firebase, it looks like this may have something to do with it - https://github.com/firebase/firebase-ios-sdk/issues/4156 – Garret Kaye Jun 04 '20 at 10:53

1 Answers1

1

You're modifying UI off the main thread. Wrap the calls to the listed methods in your code in DispatchQueue.main blocks:

DispatchQueue.main.async {
  // code goes here
}

If you want to learn more about DispatchQueue.main I wrote a blog post about it recently: link

donnywals
  • 7,241
  • 1
  • 19
  • 27