Doesn't work the Conntected Home Over IP Support class

let setupManager = HMAccessorySetupManager()
let homeTopology = HMCHIPServiceTopology(homes: homes)
setupManager.addAndSetUpAccessories(for: homeTopology, completionHandler: { error in
   if let error = error {
      print(error) 
      }
})

when calling the function 'setupManager.addAndSetUpAccessories(for: homeTopology)', an error log occurs.

Error Domain=HMErrorDomain Code=48 "Operation is not supported." UserInfo={NSLocalizedDescription=Operation is not supported.}

Any ideas what could cause this? Is this function not working yet because it is currently beta? Or, did i use the function wrong?

After installing the iOS beta, you need to enable matter/CHIP support. Check the PDF referenced in https://developer.apple.com/documentation/homekit?changes=latest_minor&language=objc for details.

I'm encountering the same issue. iOS 15 beta, tvOS 15 beta, and matter/chip profiles are installed on both devices.

Failed to add and set up accessories for topology: Error Domain=HMErrorDomain Code=48 "(null)"

I just tried out iOS beta 4 and XCode beta 4 and this is no longer an issue. Thank you for the fix!

Doesn't work the Conntected Home Over IP Support class
 
 
Q