How to test HomeKit automations in Xcode Simulator?


I'm writing an app that will create triggers and automations via the HomeKit API. As part of testing I am using the Homekit Accessory Simulator. I'm able to create some accessories and add them to my Xcode simulator (iOS). However, when I try and create a trigger using HMHome.addTrigger() I get an error saying that there is no HomeHub.

Has anyone figured out how this can be tested?




This is currently not supported on the simulator, please feel free to provide feedback via Feedback Assistant.