Instantiating HMHomeManager causes a background thread error

163 views Asked by At

I have a fresh iOS app / project; all I've done is import the HomeKit framework. When I instantiate HMHomeManager:

var homeManager = HMHomeManager()

Xcode yells at me:

Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]

... this occurs even if I wrap it in DispatchQueue.main.async {}

Since this project is effectively blank, I'm assuming this an Xcode bug ... but am I doing something wrong?

0

There are 0 answers